Package com.dropbox.core.v2.users
Class Account
- java.lang.Object
- 
- com.dropbox.core.v2.users.Account
 
- 
- Direct Known Subclasses:
- BasicAccount,- FullAccount
 
 public class Account extends java.lang.ObjectThe amount of detail revealed about an account depends on the user being queried and the user making the query.
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.lang.StringaccountIdprotected booleandisabledprotected java.lang.Stringemailprotected booleanemailVerifiedprotected Namenameprotected java.lang.StringprofilePhotoUrl
 - 
Constructor SummaryConstructors Constructor Description Account(java.lang.String accountId, Name name, java.lang.String email, boolean emailVerified, boolean disabled)The amount of detail revealed about an account depends on the user being queried and the user making the query.Account(java.lang.String accountId, Name name, java.lang.String email, boolean emailVerified, boolean disabled, java.lang.String profilePhotoUrl)The amount of detail revealed about an account depends on the user being queried and the user making the query.
 - 
Method SummaryAll 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.NamegetName()Details of a user's name.java.lang.StringgetProfilePhotoUrl()URL for the photo representing the user, if one is set.inthashCode()java.lang.StringtoString()java.lang.StringtoStringMultiline()Returns a String representation of this object formatted for easier readability.
 
- 
- 
- 
Field Detail- 
accountIdprotected final java.lang.String accountId 
 - 
nameprotected final Name name 
 - 
emailprotected final java.lang.String email 
 - 
emailVerifiedprotected final boolean emailVerified 
 - 
profilePhotoUrlprotected final java.lang.String profilePhotoUrl 
 - 
disabledprotected final boolean disabled 
 
- 
 - 
Constructor Detail- 
Accountpublic Account(java.lang.String accountId, Name name, java.lang.String email, boolean emailVerified, boolean disabled, java.lang.String profilePhotoUrl)The amount of detail revealed about an account depends on the user being queried and the user making the query.- 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- 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.
- profilePhotoUrl- URL for the photo representing the user, if one is set.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
Accountpublic Account(java.lang.String accountId, Name name, java.lang.String email, boolean emailVerified, boolean disabled)The amount of detail revealed about an account depends on the user being queried and the user making the query.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- 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.
- 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.- Returns:
- value for this field, never null.
 
 - 
getNamepublic Name getName() Details of a user's name.- Returns:
- value for this field, never null.
 
 - 
getEmailpublic java.lang.String getEmail() The user's email address. Do not rely on this without checking thegetEmailVerified()field. Even then, it's possible that the user has since lost access to their email.- Returns:
- value for this field, never null.
 
 - 
getEmailVerifiedpublic boolean getEmailVerified() Whether the user has verified their email address.- Returns:
- value for this field.
 
 - 
getDisabledpublic boolean getDisabled() Whether the user has been disabled.- Returns:
- value for this field.
 
 - 
getProfilePhotoUrlpublic java.lang.String getProfilePhotoUrl() URL for the photo representing the user, if one is set.- 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
 
 
- 
 
-