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.Object
The amount of detail revealed about an account depends on the user being queried and the user making the query.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
accountId
protected boolean
disabled
protected java.lang.String
email
protected boolean
emailVerified
protected Name
name
protected java.lang.String
profilePhotoUrl
-
Constructor Summary
Constructors 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getAccountId()
The user's unique Dropbox ID.boolean
getDisabled()
Whether the user has been disabled.java.lang.String
getEmail()
The user's e-mail address.boolean
getEmailVerified()
Whether the user has verified their e-mail address.Name
getName()
Details of a user's name.java.lang.String
getProfilePhotoUrl()
URL for the photo representing the user, if one is set.int
hashCode()
java.lang.String
toString()
java.lang.String
toStringMultiline()
Returns a String representation of this object formatted for easier readability.
-
-
-
Field Detail
-
accountId
protected final java.lang.String accountId
-
name
protected final Name name
-
email
protected final java.lang.String email
-
emailVerified
protected final boolean emailVerified
-
profilePhotoUrl
protected final java.lang.String profilePhotoUrl
-
disabled
protected final boolean disabled
-
-
Constructor Detail
-
Account
public 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 benull
.name
- Details of a user's name. Must not benull
.email
- The user's e-mail address. Do not rely on this without checking thegetEmailVerified()
field. Even then, it's possible that the user has since lost access to their e-mail. Must not benull
.emailVerified
- Whether the user has verified their e-mail 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.
-
Account
public 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 benull
.name
- Details of a user's name. Must not benull
.email
- The user's e-mail address. Do not rely on this without checking thegetEmailVerified()
field. Even then, it's possible that the user has since lost access to their e-mail. Must not benull
.emailVerified
- Whether the user has verified their e-mail address.disabled
- Whether the user has been disabled.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
-
Method Detail
-
getAccountId
public java.lang.String getAccountId()
The user's unique Dropbox ID.- Returns:
- value for this field, never
null
.
-
getName
public Name getName()
Details of a user's name.- Returns:
- value for this field, never
null
.
-
getEmail
public java.lang.String getEmail()
The user's e-mail address. Do not rely on this without checking thegetEmailVerified()
field. Even then, it's possible that the user has since lost access to their e-mail.- Returns:
- value for this field, never
null
.
-
getEmailVerified
public boolean getEmailVerified()
Whether the user has verified their e-mail address.- Returns:
- value for this field.
-
getDisabled
public boolean getDisabled()
Whether the user has been disabled.- Returns:
- value for this field.
-
getProfilePhotoUrl
public java.lang.String getProfilePhotoUrl()
URL for the photo representing the user, if one is set.- 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
-
-