public class FullAccount extends Account
Modifier and Type | Class and Description |
---|---|
static class |
FullAccount.Builder
Builder for
FullAccount . |
Modifier and Type | Field and Description |
---|---|
protected AccountType |
accountType |
protected java.lang.String |
country |
protected boolean |
isPaired |
protected java.lang.String |
locale |
protected java.lang.String |
referralLink |
protected RootInfo |
rootInfo |
protected FullTeam |
team |
protected java.lang.String |
teamMemberId |
accountId, disabled, email, emailVerified, name, profilePhotoUrl
Constructor and Description |
---|
FullAccount(java.lang.String accountId,
Name name,
java.lang.String email,
boolean emailVerified,
boolean disabled,
java.lang.String locale,
java.lang.String referralLink,
boolean isPaired,
AccountType accountType,
RootInfo rootInfo)
Detailed information about the current user's account.
|
FullAccount(java.lang.String accountId,
Name name,
java.lang.String email,
boolean emailVerified,
boolean disabled,
java.lang.String locale,
java.lang.String referralLink,
boolean isPaired,
AccountType accountType,
RootInfo rootInfo,
java.lang.String profilePhotoUrl,
java.lang.String country,
FullTeam team,
java.lang.String teamMemberId)
Detailed information about the current user's account.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAccountId()
The user's unique Dropbox ID.
|
AccountType |
getAccountType()
What type of account this user has.
|
java.lang.String |
getCountry()
The user's two-letter country code, if available.
|
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.
|
boolean |
getIsPaired()
Whether the user has a personal and work account.
|
java.lang.String |
getLocale()
The language that the user specified.
|
Name |
getName()
Details of a user's name.
|
java.lang.String |
getProfilePhotoUrl()
URL for the photo representing the user, if one is set.
|
java.lang.String |
getReferralLink()
The user's referral link.
|
RootInfo |
getRootInfo()
The root info for this account.
|
FullTeam |
getTeam()
If this account is a member of a team, information about that team.
|
java.lang.String |
getTeamMemberId()
This account's unique team member id.
|
int |
hashCode() |
static FullAccount.Builder |
newBuilder(java.lang.String accountId,
Name name,
java.lang.String email,
boolean emailVerified,
boolean disabled,
java.lang.String locale,
java.lang.String referralLink,
boolean isPaired,
AccountType accountType,
RootInfo rootInfo)
Returns a new builder for creating an instance of this class.
|
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final java.lang.String country
protected final java.lang.String locale
protected final java.lang.String referralLink
protected final FullTeam team
protected final java.lang.String teamMemberId
protected final boolean isPaired
protected final AccountType accountType
protected final RootInfo rootInfo
public FullAccount(java.lang.String accountId, Name name, java.lang.String email, boolean emailVerified, boolean disabled, java.lang.String locale, java.lang.String referralLink, boolean isPaired, AccountType accountType, RootInfo rootInfo, java.lang.String profilePhotoUrl, java.lang.String country, FullTeam team, java.lang.String teamMemberId)
Use newBuilder
to create instances of this class without
specifying values for all optional fields.
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 Account.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.locale
- The language that the user specified. Locale tags will be
IETF
language tags. Must have length of at least 2 and not be null
.referralLink
- The user's referral link. Must not
be null
.isPaired
- Whether the user has a personal and work account. If the
current account is personal, then getTeam()
will
always be null
, but getIsPaired()
will
indicate if a work account is linked.accountType
- What type of account this user has. Must not be
null
.rootInfo
- The root info for this account. Must not be null
.profilePhotoUrl
- URL for the photo representing the user, if one
is set.country
- The user's two-letter country code, if available. Country
codes are based on ISO 3166-1. Must
have length of at least 2 and have length of at most 2.team
- If this account is a member of a team, information about
that team.teamMemberId
- This account's unique team member id. This field
will only be present if getTeam()
is present.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public FullAccount(java.lang.String accountId, Name name, java.lang.String email, boolean emailVerified, boolean disabled, java.lang.String locale, java.lang.String referralLink, boolean isPaired, AccountType accountType, RootInfo rootInfo)
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 Account.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.locale
- The language that the user specified. Locale tags will be
IETF
language tags. Must have length of at least 2 and not be null
.referralLink
- The user's referral link. Must not
be null
.isPaired
- Whether the user has a personal and work account. If the
current account is personal, then getTeam()
will
always be null
, but getIsPaired()
will
indicate if a work account is linked.accountType
- What type of account this user has. Must not be
null
.rootInfo
- The root info for this account. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public java.lang.String getAccountId()
getAccountId
in class Account
null
.public Name getName()
public java.lang.String getEmail()
Account.getEmailVerified()
field. Even then, it's possible that the
user has since lost access to their e-mail.public boolean getEmailVerified()
getEmailVerified
in class Account
public boolean getDisabled()
getDisabled
in class Account
public java.lang.String getLocale()
null
.public java.lang.String getReferralLink()
null
.public boolean getIsPaired()
getTeam()
will always be null
, but getIsPaired()
will indicate if a work
account is linked.public AccountType getAccountType()
null
.public RootInfo getRootInfo()
null
.public java.lang.String getProfilePhotoUrl()
getProfilePhotoUrl
in class Account
null
if not present.public java.lang.String getCountry()
null
if not present.public FullTeam getTeam()
null
if not present.public java.lang.String getTeamMemberId()
getTeam()
is present.null
if not present.public static FullAccount.Builder newBuilder(java.lang.String accountId, Name name, java.lang.String email, boolean emailVerified, boolean disabled, java.lang.String locale, java.lang.String referralLink, boolean isPaired, AccountType accountType, RootInfo rootInfo)
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 Account.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.locale
- The language that the user specified. Locale tags will be
IETF
language tags. Must have length of at least 2 and not be null
.referralLink
- The user's referral link. Must not
be null
.isPaired
- Whether the user has a personal and work account. If the
current account is personal, then getTeam()
will
always be null
, but getIsPaired()
will
indicate if a work account is linked.accountType
- What type of account this user has. Must not be
null
.rootInfo
- The root info for this account. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public java.lang.String toStringMultiline()
The returned String may contain newlines.
toStringMultiline
in class Account