public class Account extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
accountId |
protected boolean |
disabled |
protected String |
email |
protected boolean |
emailVerified |
protected Name |
name |
protected String |
profilePhotoUrl |
Constructor and Description |
---|
Account(String accountId,
Name name,
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(String accountId,
Name name,
String email,
boolean emailVerified,
boolean disabled,
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(Object obj) |
String |
getAccountId()
The user's unique Dropbox ID.
|
boolean |
getDisabled()
Whether the user has been disabled.
|
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.
|
String |
getProfilePhotoUrl()
URL for the photo representing the user, if one is set.
|
int |
hashCode() |
String |
toString() |
String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final String accountId
protected final Name name
protected final String email
protected final boolean emailVerified
protected final String profilePhotoUrl
protected final boolean disabled
public Account(String accountId, Name name, String email, boolean emailVerified, boolean disabled, 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.IllegalArgumentException
- If any argument does not meet its
preconditions.public Account(String accountId, Name name, 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.IllegalArgumentException
- If any argument does not meet its
preconditions.public String getAccountId()
null
.public Name getName()
null
.public 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 String getProfilePhotoUrl()
null
if not present.public String toStringMultiline()
The returned String may contain newlines.