Package com.dropbox.core.v2.sharing
Class TeamMemberInfo
- java.lang.Object
-
- com.dropbox.core.v2.sharing.TeamMemberInfo
-
public class TeamMemberInfo extends java.lang.Object
Information about a team member.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
displayName
protected java.lang.String
memberId
protected Team
teamInfo
-
Constructor Summary
Constructors Constructor Description TeamMemberInfo(Team teamInfo, java.lang.String displayName)
Information about a team member.TeamMemberInfo(Team teamInfo, java.lang.String displayName, java.lang.String memberId)
Information about a team member.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getDisplayName()
The display name of the user.java.lang.String
getMemberId()
ID of user as a member of a team.Team
getTeamInfo()
Information about the member's team.int
hashCode()
java.lang.String
toString()
java.lang.String
toStringMultiline()
Returns a String representation of this object formatted for easier readability.
-
-
-
Field Detail
-
teamInfo
protected final Team teamInfo
-
displayName
protected final java.lang.String displayName
-
memberId
protected final java.lang.String memberId
-
-
Constructor Detail
-
TeamMemberInfo
public TeamMemberInfo(Team teamInfo, java.lang.String displayName, java.lang.String memberId)
Information about a team member.- Parameters:
teamInfo
- Information about the member's team. Must not benull
.displayName
- The display name of the user. Must not benull
.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:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
TeamMemberInfo
public TeamMemberInfo(Team teamInfo, java.lang.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 benull
.displayName
- The display name of the user. Must not benull
.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
-
Method Detail
-
getTeamInfo
public Team getTeamInfo()
Information about the member's team.- Returns:
- value for this field, never
null
.
-
getDisplayName
public java.lang.String getDisplayName()
The display name of the user.- Returns:
- value for this field, never
null
.
-
getMemberId
public java.lang.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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toStringMultiline
public java.lang.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
-
-