public class UserInfo
extends java.lang.Object
DbxUserUsersRequests.getAccount(String)
and DbxUserUsersRequests.getAccountBatch(java.util.List)
to obtain more detailed information.Modifier and Type | Class and Description |
---|---|
static class |
UserInfo.Serializer
For internal use only.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
accountId |
protected java.lang.String |
displayName |
protected java.lang.String |
email |
protected boolean |
sameTeam |
protected java.lang.String |
teamMemberId |
Constructor and Description |
---|
UserInfo(java.lang.String accountId,
java.lang.String email,
java.lang.String displayName,
boolean sameTeam)
Basic information about a user.
|
UserInfo(java.lang.String accountId,
java.lang.String email,
java.lang.String displayName,
boolean sameTeam,
java.lang.String teamMemberId)
Basic information about a user.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAccountId()
The account ID of the user.
|
java.lang.String |
getDisplayName()
The display name of the user.
|
java.lang.String |
getEmail()
Email address of user.
|
boolean |
getSameTeam()
If the user is in the same team as current user.
|
java.lang.String |
getTeamMemberId()
The team member ID of the shared folder member.
|
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final java.lang.String accountId
protected final java.lang.String email
protected final java.lang.String displayName
protected final boolean sameTeam
protected final java.lang.String teamMemberId
public UserInfo(java.lang.String accountId, java.lang.String email, java.lang.String displayName, boolean sameTeam, java.lang.String teamMemberId)
DbxUserUsersRequests.getAccount(String)
and
DbxUserUsersRequests.getAccountBatch(java.util.List)
to obtain more detailed information.accountId
- The account ID of the user. Must have length of at
least 40, have length of at most 40, and not be null
.email
- Email address of user. Must not be null
.displayName
- The display name of the user. Must not be null
.sameTeam
- If the user is in the same team as current user.teamMemberId
- The team member ID of the shared folder member. Only
present if getSameTeam()
is true.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public UserInfo(java.lang.String accountId, java.lang.String email, java.lang.String displayName, boolean sameTeam)
DbxUserUsersRequests.getAccount(String)
and
DbxUserUsersRequests.getAccountBatch(java.util.List)
to obtain more detailed information.
The default values for unset fields will be used.
accountId
- The account ID of the user. Must have length of at
least 40, have length of at most 40, and not be null
.email
- Email address of user. Must not be null
.displayName
- The display name of the user. Must not be null
.sameTeam
- If the user is in the same team as current user.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public java.lang.String getAccountId()
null
.public java.lang.String getEmail()
null
.public java.lang.String getDisplayName()
null
.public boolean getSameTeam()
public java.lang.String getTeamMemberId()
getSameTeam()
is true.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.