Class MemberImpl
java.lang.Object
pw.chew.clickup4j.internal.entities.MemberImpl
- All Implemented Interfaces:
Member
-
Nested Class Summary
Nested classes/interfaces inherited from interface pw.chew.clickup4j.api.entities.Member
Member.Role
-
Constructor 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.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.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.
-
Constructor Details
-
MemberImpl
-
-
Method Details
-
getUser
Description copied from interface:Member
Returns theUser
sub-interface of this member. -
getEmail
Description copied from interface:Member
The email of the user. -
getInitials
Description copied from interface:Member
The "initials" for this user.
This seems to be used internally in the API for users without a profile picture.- Specified by:
getInitials
in interfaceMember
- Returns:
- never-null initials
-
getRole
Description copied from interface:Member
The role for this user. This is an enum constantMember.Role
to store the possible values.- Specified by:
getRole
in interfaceMember
- Returns:
- never-null
Member.Role
-
getCustomRole
Description copied from interface:Member
Returns the custom role of this user, if any.
Custom Roles require Business Plus Plan or above.- Specified by:
getCustomRole
in interfaceMember
- Returns:
- nullable custom role
-
getLastActive
Description copied from interface:Member
Returns when this user was last active.
If the user has been invited, but has not accepted yet, this will benull
.- Specified by:
getLastActive
in interfaceMember
- Returns:
- nullable last active date
-
getDateJoined
Description copied from interface:Member
Returns when this user joined the workspace.
If the user has been invited, but has not accepted yet, this will benull
.- Specified by:
getDateJoined
in interfaceMember
- Returns:
- nullable join date
-
getDateInvited
Description copied from interface:Member
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.- Specified by:
getDateInvited
in interfaceMember
- Returns:
- never-null invitation date
-
getInvitedBy
Description copied from interface:Member
Returns the inviting user for this member.
Owners were never invited, so this may benull
.- Specified by:
getInvitedBy
in interfaceMember
- Returns:
- nullable inviting user
-
getClickUp4j
Description copied from interface:Member
Returns thisClickUp4j
instance.- Specified by:
getClickUp4j
in interfaceMember
- Returns:
- never-null
ClickUp4j
instance
-