Package com.dropbox.core.v2.sharing
Class UserInfo
- java.lang.Object
- 
- com.dropbox.core.v2.sharing.UserInfo
 
- 
 public class UserInfo extends java.lang.ObjectBasic information about a user. UseDbxUserUsersRequests.getAccount(String)andDbxUserUsersRequests.getAccountBatch(java.util.List)to obtain more detailed information.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classUserInfo.SerializerFor internal use only.
 - 
Field SummaryFields Modifier and Type Field Description protected java.lang.StringaccountIdprotected java.lang.StringdisplayNameprotected java.lang.Stringemailprotected booleansameTeamprotected java.lang.StringteamMemberId
 - 
Constructor SummaryConstructors Constructor 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.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetAccountId()The account ID of the user.java.lang.StringgetDisplayName()The display name of the user.java.lang.StringgetEmail()Email address of user.booleangetSameTeam()If the user is in the same team as current user.java.lang.StringgetTeamMemberId()The team member ID of the shared folder member.inthashCode()java.lang.StringtoString()java.lang.StringtoStringMultiline()Returns a String representation of this object formatted for easier readability.
 
- 
- 
- 
Constructor Detail- 
UserInfopublic UserInfo(java.lang.String accountId, java.lang.String email, java.lang.String displayName, boolean sameTeam, java.lang.String teamMemberId)Basic information about a user. UseDbxUserUsersRequests.getAccount(String)andDbxUserUsersRequests.getAccountBatch(java.util.List)to obtain more detailed information.- Parameters:
- 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.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
UserInfopublic UserInfo(java.lang.String accountId, java.lang.String email, java.lang.String displayName, boolean sameTeam)Basic information about a user. UseDbxUserUsersRequests.getAccount(String)andDbxUserUsersRequests.getAccountBatch(java.util.List)to obtain more detailed information.The default values for unset fields will be used. - Parameters:
- 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.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 
- 
 - 
Method Detail- 
getAccountIdpublic java.lang.String getAccountId() The account ID of the user.- Returns:
- value for this field, never null.
 
 - 
getEmailpublic java.lang.String getEmail() Email address of user.- Returns:
- value for this field, never null.
 
 - 
getDisplayNamepublic java.lang.String getDisplayName() The display name of the user.- Returns:
- value for this field, never null.
 
 - 
getSameTeampublic boolean getSameTeam() If the user is in the same team as current user.- Returns:
- value for this field.
 
 - 
getTeamMemberIdpublic java.lang.String getTeamMemberId() The team member ID of the shared folder member. Only present ifgetSameTeam()is true.- Returns:
- value for this field, or nullif not present.
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
toStringMultilinepublic 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
 
 
- 
 
-