Class TeamMemberInfo

java.lang.Object
com.dropbox.core.v2.sharing.TeamMemberInfo

public class TeamMemberInfo extends Object
Information about a team member.
  • Field Details

    • teamInfo

      @Nonnull protected final Team teamInfo
    • displayName

      @Nonnull protected final String displayName
    • memberId

      @Nullable protected final String memberId
  • Constructor Details

    • TeamMemberInfo

      public TeamMemberInfo(@Nonnull Team teamInfo, @Nonnull String displayName, @Nullable String memberId)
      Information about a team member.
      Parameters:
      teamInfo - Information about the member's team. Must not be null.
      displayName - The display name of the user. Must not be null.
      memberId - ID of user as a member of a team. This field will only be present if the member is in the same team as current user.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • TeamMemberInfo

      public TeamMemberInfo(@Nonnull Team teamInfo, @Nonnull String displayName)
      Information about a team member.

      The default values for unset fields will be used.

      Parameters:
      teamInfo - Information about the member's team. Must not be null.
      displayName - The display name of the user. Must not be null.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
  • Method Details

    • getTeamInfo

      @Nonnull public Team getTeamInfo()
      Information about the member's team.
      Returns:
      value for this field, never null.
    • getDisplayName

      @Nonnull public String getDisplayName()
      The display name of the user.
      Returns:
      value for this field, never null.
    • getMemberId

      @Nullable public String getMemberId()
      ID of user as a member of a team. This field will only be present if the member is in the same team as current user.
      Returns:
      value for this field, or null if not present.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toStringMultiline

      public String toStringMultiline()
      Returns a String representation of this object formatted for easier readability.

      The returned String may contain newlines.

      Returns:
      Formatted, multiline String representation of this object