Package com.dropbox.core.v2.sharing
Class UserInfo
java.lang.Object
com.dropbox.core.v2.sharing.UserInfo
Basic information about a user. Use
DbxUserUsersRequests.getAccount(String) and DbxUserUsersRequests.getAccountBatch(java.util.List)
to obtain more detailed information.-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe account ID of the user.The display name of the user.getEmail()Email address of user.booleanIf the user is in the same team as current user.The team member ID of the shared folder member.inthashCode()toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
accountId
-
email
-
displayName
-
sameTeam
protected final boolean sameTeam -
teamMemberId
-
-
Constructor Details
-
UserInfo
public UserInfo(@Nonnull String accountId, @Nonnull String email, @Nonnull String displayName, boolean sameTeam, @Nullable 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:
IllegalArgumentException- If any argument does not meet its preconditions.
-
UserInfo
public UserInfo(@Nonnull String accountId, @Nonnull String email, @Nonnull 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:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getAccountId
The account ID of the user.- Returns:
- value for this field, never
null.
-
getEmail
Email address of user.- Returns:
- value for this field, never
null.
-
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
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() -
equals
-
toString
-
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
-