Package pw.chew.clickup4j.api.entities
Interface Member
- All Known Implementing Classes:
MemberImpl
public interface Member
A member is a simple wrapper for a User. It may contain additional information.
Most of the time, you might just want
getUser()
.-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull ClickUp4j
Returns thisClickUp4j
instance.@Nullable String
Returns the custom role of this user, if any.@NotNull OffsetDateTime
Returns when this user was invited.@Nullable OffsetDateTime
Returns when this user joined the workspace.@NotNull String
getEmail()
The email of the user.@NotNull String
The "initials" for this user.@Nullable User
Returns the inviting user for this member.@Nullable OffsetDateTime
Returns when this user was last active.@NotNull Member.Role
getRole()
The role for this user.@NotNull User
getUser()
Returns theUser
sub-interface of this member.
-
Method Details
-
getUser
Returns theUser
sub-interface of this member.- Returns:
- never-null
User
sub-interface
-
getEmail
The email of the user.- Returns:
- never-null email
-
getInitials
The "initials" for this user.
This seems to be used internally in the API for users without a profile picture.- Returns:
- never-null initials
-
getRole
The role for this user. This is an enum constantMember.Role
to store the possible values.- Returns:
- never-null
Member.Role
-
getCustomRole
Returns the custom role of this user, if any.
Custom Roles require Business Plus Plan or above.- Returns:
- nullable custom role
-
getLastActive
Returns when this user was last active.
If the user has been invited, but has not accepted yet, this will benull
.- Returns:
- nullable last active date
-
getDateJoined
Returns when this user joined the workspace.
If the user has been invited, but has not accepted yet, this will benull
.- Returns:
- nullable join date
-
getDateInvited
Returns when this user was invited.
All members have an invitation date, even if they have not accepted yet, and even if they're owner.- Returns:
- never-null invitation date
-
getInvitedBy
Returns the inviting user for this member.
Owners were never invited, so this may benull
.- Returns:
- nullable inviting user
-
getClickUp4j
Returns thisClickUp4j
instance.- Returns:
- never-null
ClickUp4j
instance
-