public class Account
extends java.lang.Object
Modifier and Type | Field and 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 and 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.
|
Modifier and Type | Method and 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.
|
protected final java.lang.String accountId
protected final Name name
protected final java.lang.String email
protected final boolean emailVerified
protected final java.lang.String profilePhotoUrl
protected final boolean disabled
public Account(java.lang.String accountId, Name name, java.lang.String email, boolean emailVerified, boolean disabled, java.lang.String profilePhotoUrl)
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 e-mail 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 e-mail. Must
not be null
.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.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public Account(java.lang.String accountId, Name name, java.lang.String email, boolean emailVerified, boolean disabled)
The default values for unset fields will be used.
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 e-mail 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 e-mail. Must
not be null
.emailVerified
- Whether the user has verified their e-mail address.disabled
- Whether the user has been disabled.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public java.lang.String getAccountId()
null
.public Name getName()
null
.public java.lang.String getEmail()
getEmailVerified()
field. Even then, it's possible that the
user has since lost access to their e-mail.null
.public boolean getEmailVerified()
public boolean getDisabled()
public java.lang.String getProfilePhotoUrl()
null
if not present.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.