public class UserInfo extends Object
DbxUserUsersRequests.getAccount(String)
and DbxUserUsersRequests.getAccountBatch(java.util.List)
to obtain more detailed information.Modifier and Type | Field and Description |
---|---|
protected String |
accountId |
protected boolean |
sameTeam |
protected String |
teamMemberId |
Constructor and Description |
---|
UserInfo(String accountId,
boolean sameTeam)
Basic information about a user.
|
UserInfo(String accountId,
boolean sameTeam,
String teamMemberId)
Basic information about a user.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAccountId()
The account ID of the user.
|
boolean |
getSameTeam()
If the user is in the same team as current user.
|
String |
getTeamMemberId()
The team member ID of the shared folder member.
|
int |
hashCode() |
String |
toString() |
String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final String accountId
protected final boolean sameTeam
protected final String teamMemberId
public UserInfo(String accountId, boolean sameTeam, 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
.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.IllegalArgumentException
- If any argument does not meet its
preconditions.public UserInfo(String accountId, 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
.sameTeam
- If the user is in the same team as current user.IllegalArgumentException
- If any argument does not meet its
preconditions.public String getAccountId()
null
.public boolean getSameTeam()
public String getTeamMemberId()
getSameTeam()
is true.null
if not present.public String toStringMultiline()
The returned String may contain newlines.