Package com.dropbox.core.v2.sharing
Class UserInfo
- java.lang.Object
-
- com.dropbox.core.v2.sharing.UserInfo
-
public class UserInfo extends java.lang.Object
Basic 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 class
UserInfo.Serializer
For internal use only.
-
Field Summary
Fields Modifier and Type Field 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 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 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.
-
-
-
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
null
if not present.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in 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
-
-