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 Summary
Nested Classes Modifier and Type Class Description static classUserInfo.SerializerFor internal use only.
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringaccountIdprotected java.lang.StringdisplayNameprotected java.lang.Stringemailprotected booleansameTeamprotected java.lang.StringteamMemberId
-
Constructor Summary
Constructors 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 Summary
All 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
-
UserInfo
public 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 benull.email- Email address of user. Must not benull.displayName- The display name of the user. Must not benull.sameTeam- If the user is in the same team as current user.teamMemberId- The team member ID of the shared folder member. Only present ifgetSameTeam()is true.- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
UserInfo
public 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 benull.email- Email address of user. Must not benull.displayName- The display name of the user. Must not benull.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
-
getAccountId
public java.lang.String getAccountId()
The account ID of the user.- Returns:
- value for this field, never
null.
-
getEmail
public java.lang.String getEmail()
Email address of user.- 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.
-
getSameTeam
public boolean getSameTeam()
If the user is in the same team as current user.- Returns:
- value for this field.
-
getTeamMemberId
public 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.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin 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
-
-