Class MemberImpl

java.lang.Object
pw.chew.clickup4j.internal.entities.MemberImpl
All Implemented Interfaces:
Member

public class MemberImpl extends Object implements Member
  • Constructor Details

    • MemberImpl

      public MemberImpl(org.json.JSONObject data, ClickUp4j api)
  • Method Details

    • getUser

      @NotNull public @NotNull User getUser()
      Description copied from interface: Member
      Returns the User sub-interface of this member.
      Specified by:
      getUser in interface Member
      Returns:
      never-null User sub-interface
    • getEmail

      @NotNull public @NotNull String getEmail()
      Description copied from interface: Member
      The email of the user.
      Specified by:
      getEmail in interface Member
      Returns:
      never-null email
    • getInitials

      @NotNull public @NotNull String 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 interface Member
      Returns:
      never-null initials
    • getRole

      @NotNull public @NotNull Member.Role getRole()
      Description copied from interface: Member
      The role for this user. This is an enum constant Member.Role to store the possible values.
      Specified by:
      getRole in interface Member
      Returns:
      never-null Member.Role
    • getCustomRole

      @Nullable public @Nullable String 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 interface Member
      Returns:
      nullable custom role
    • getLastActive

      public OffsetDateTime 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 be null.
      Specified by:
      getLastActive in interface Member
      Returns:
      nullable last active date
    • getDateJoined

      public OffsetDateTime 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 be null.
      Specified by:
      getDateJoined in interface Member
      Returns:
      nullable join date
    • getDateInvited

      @NotNull public @NotNull OffsetDateTime 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 interface Member
      Returns:
      never-null invitation date
    • getInvitedBy

      @Nullable public @Nullable User getInvitedBy()
      Description copied from interface: Member
      Returns the inviting user for this member.
      Owners were never invited, so this may be null.
      Specified by:
      getInvitedBy in interface Member
      Returns:
      nullable inviting user
    • getClickUp4j

      @NotNull public @NotNull ClickUp4j getClickUp4j()
      Description copied from interface: Member
      Returns this ClickUp4j instance.
      Specified by:
      getClickUp4j in interface Member
      Returns:
      never-null ClickUp4j instance