public class TeamMemberInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
displayName |
protected java.lang.String |
memberId |
protected Team |
teamInfo |
Constructor and 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.
|
Modifier and Type | Method and 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.
|
protected final Team teamInfo
protected final java.lang.String displayName
protected final java.lang.String memberId
public TeamMemberInfo(Team teamInfo, java.lang.String displayName, java.lang.String memberId)
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.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public TeamMemberInfo(Team teamInfo, java.lang.String displayName)
The default values for unset fields will be used.
teamInfo
- Information about the member's team. Must not be null
.displayName
- The display name of the user. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public Team getTeamInfo()
null
.public java.lang.String getDisplayName()
null
.public java.lang.String getMemberId()
null
if not present.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.