Package com.dropbox.core.v2.users
Class BasicAccount
- java.lang.Object
- 
- com.dropbox.core.v2.users.Account
- 
- com.dropbox.core.v2.users.BasicAccount
 
 
- 
 public class BasicAccount extends Account Basic information about any account.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classBasicAccount.BuilderBuilder forBasicAccount.static classBasicAccount.SerializerFor internal use only.
 - 
Field SummaryFields Modifier and Type Field Description protected booleanisTeammateprotected java.lang.StringteamMemberId- 
Fields inherited from class com.dropbox.core.v2.users.AccountaccountId, disabled, email, emailVerified, name, profilePhotoUrl
 
- 
 - 
Constructor SummaryConstructors Constructor Description BasicAccount(java.lang.String accountId, Name name, java.lang.String email, boolean emailVerified, boolean disabled, boolean isTeammate)Basic information about any account.BasicAccount(java.lang.String accountId, Name name, java.lang.String email, boolean emailVerified, boolean disabled, boolean isTeammate, java.lang.String profilePhotoUrl, java.lang.String teamMemberId)Basic information about any account.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetAccountId()The user's unique Dropbox ID.booleangetDisabled()Whether the user has been disabled.java.lang.StringgetEmail()The user's email address.booleangetEmailVerified()Whether the user has verified their email address.booleangetIsTeammate()Whether this user is a teammate of the current user.NamegetName()Details of a user's name.java.lang.StringgetProfilePhotoUrl()URL for the photo representing the user, if one is set.java.lang.StringgetTeamMemberId()The user's unique team member id.inthashCode()static BasicAccount.BuildernewBuilder(java.lang.String accountId, Name name, java.lang.String email, boolean emailVerified, boolean disabled, boolean isTeammate)Returns a new builder for creating an instance of this class.java.lang.StringtoString()java.lang.StringtoStringMultiline()Returns a String representation of this object formatted for easier readability.
 
- 
- 
- 
Constructor Detail- 
BasicAccountpublic BasicAccount(java.lang.String accountId, Name name, java.lang.String email, boolean emailVerified, boolean disabled, boolean isTeammate, java.lang.String profilePhotoUrl, java.lang.String teamMemberId)Basic information about any account.Use newBuilder(java.lang.String,com.dropbox.core.v2.users.Name,java.lang.String,boolean,boolean,boolean)to create instances of this class without specifying values for all optional fields.- Parameters:
- accountId- The user's unique Dropbox ID. Must have length of at least 40, have length of at most 40, and not be- null.
- name- Details of a user's name. Must not be- null.
- email- The user's email address. Do not rely on this without checking the- Account.getEmailVerified()field. Even then, it's possible that the user has since lost access to their email. Must not be- null.
- emailVerified- Whether the user has verified their email address.
- disabled- Whether the user has been disabled.
- isTeammate- Whether this user is a teammate of the current user. If this account is the current user's account, then this will be- true.
- profilePhotoUrl- URL for the photo representing the user, if one is set.
- teamMemberId- The user's unique team member id. This field will only be present if the user is part of a team and- getIsTeammate()is- true.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
BasicAccountpublic BasicAccount(java.lang.String accountId, Name name, java.lang.String email, boolean emailVerified, boolean disabled, boolean isTeammate)Basic information about any account.The default values for unset fields will be used. - Parameters:
- accountId- The user's unique Dropbox ID. Must have length of at least 40, have length of at most 40, and not be- null.
- name- Details of a user's name. Must not be- null.
- email- The user's email address. Do not rely on this without checking the- Account.getEmailVerified()field. Even then, it's possible that the user has since lost access to their email. Must not be- null.
- emailVerified- Whether the user has verified their email address.
- disabled- Whether the user has been disabled.
- isTeammate- Whether this user is a teammate of the current user. If this account is the current user's account, then this will be- true.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 
- 
 - 
Method Detail- 
getAccountIdpublic java.lang.String getAccountId() The user's unique Dropbox ID.- Overrides:
- getAccountIdin class- Account
- Returns:
- value for this field, never null.
 
 - 
getNamepublic Name getName() Details of a user's name.
 - 
getEmailpublic java.lang.String getEmail() The user's email address. Do not rely on this without checking theAccount.getEmailVerified()field. Even then, it's possible that the user has since lost access to their email.
 - 
getEmailVerifiedpublic boolean getEmailVerified() Whether the user has verified their email address.- Overrides:
- getEmailVerifiedin class- Account
- Returns:
- value for this field.
 
 - 
getDisabledpublic boolean getDisabled() Whether the user has been disabled.- Overrides:
- getDisabledin class- Account
- Returns:
- value for this field.
 
 - 
getIsTeammatepublic boolean getIsTeammate() Whether this user is a teammate of the current user. If this account is the current user's account, then this will betrue.- Returns:
- value for this field.
 
 - 
getProfilePhotoUrlpublic java.lang.String getProfilePhotoUrl() URL for the photo representing the user, if one is set.- Overrides:
- getProfilePhotoUrlin class- Account
- Returns:
- value for this field, or nullif not present.
 
 - 
getTeamMemberIdpublic java.lang.String getTeamMemberId() The user's unique team member id. This field will only be present if the user is part of a team andgetIsTeammate()istrue.- Returns:
- value for this field, or nullif not present.
 
 - 
newBuilderpublic static BasicAccount.Builder newBuilder(java.lang.String accountId, Name name, java.lang.String email, boolean emailVerified, boolean disabled, boolean isTeammate) Returns a new builder for creating an instance of this class.- Parameters:
- accountId- The user's unique Dropbox ID. Must have length of at least 40, have length of at most 40, and not be- null.
- name- Details of a user's name. Must not be- null.
- email- The user's email address. Do not rely on this without checking the- Account.getEmailVerified()field. Even then, it's possible that the user has since lost access to their email. Must not be- null.
- emailVerified- Whether the user has verified their email address.
- disabled- Whether the user has been disabled.
- isTeammate- Whether this user is a teammate of the current user. If this account is the current user's account, then this will be- true.
- Returns:
- builder for this class.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
toStringMultilinepublic java.lang.String toStringMultiline() Returns a String representation of this object formatted for easier readability.The returned String may contain newlines. - Overrides:
- toStringMultilinein class- Account
- Returns:
- Formatted, multiline String representation of this object
 
 
- 
 
-