Package com.dropbox.core.v2.users
Class FullAccount
java.lang.Object
com.dropbox.core.v2.users.Account
com.dropbox.core.v2.users.FullAccount
Detailed information about the current user's account.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AccountTypeprotected final Stringprotected final booleanprotected final Stringprotected final Stringprotected final RootInfoprotected final FullTeamprotected final StringFields inherited from class com.dropbox.core.v2.users.Account
accountId, disabled, email, emailVerified, name, profilePhotoUrl -
Constructor Summary
ConstructorsConstructorDescriptionFullAccount(String accountId, Name name, String email, boolean emailVerified, boolean disabled, String locale, String referralLink, boolean isPaired, AccountType accountType, RootInfo rootInfo) Detailed information about the current user's account.FullAccount(String accountId, Name name, String email, boolean emailVerified, boolean disabled, String locale, String referralLink, boolean isPaired, AccountType accountType, RootInfo rootInfo, String profilePhotoUrl, String country, FullTeam team, String teamMemberId) Detailed information about the current user's account. -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe user's unique Dropbox ID.What type of account this user has.The user's two-letter country code, if available.booleanWhether the user has been disabled.getEmail()The user's email address.booleanWhether the user has verified their email address.booleanWhether the user has a personal and work account.The language that the user specified.getName()Details of a user's name.URL for the photo representing the user, if one is set.The user's referral link.The root info for this account.getTeam()If this account is a member of a team, information about that team.This account's unique team member id.inthashCode()static FullAccount.BuildernewBuilder(String accountId, Name name, String email, boolean emailVerified, boolean disabled, String locale, String referralLink, boolean isPaired, AccountType accountType, RootInfo rootInfo) Returns a new builder for creating an instance of this class.toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
country
-
locale
-
referralLink
-
team
-
teamMemberId
-
isPaired
protected final boolean isPaired -
accountType
-
rootInfo
-
-
Constructor Details
-
FullAccount
public FullAccount(@Nonnull String accountId, @Nonnull Name name, @Nonnull String email, boolean emailVerified, boolean disabled, @Nonnull String locale, @Nonnull String referralLink, boolean isPaired, @Nonnull AccountType accountType, @Nonnull RootInfo rootInfo, @Nullable String profilePhotoUrl, @Nullable String country, @Nullable FullTeam team, @Nullable String teamMemberId) Detailed information about the current user's account.Use
newBuilder(java.lang.String,com.dropbox.core.v2.users.Name,java.lang.String,boolean,boolean,java.lang.String,java.lang.String,boolean,com.dropbox.core.v2.userscommon.AccountType,com.dropbox.core.v2.common.RootInfo)to create instances of this class without specifying values for all optional fields.- 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 email address. Do not rely on this without checking theAccount.getEmailVerified()field. Even then, it's possible that the user has since lost access to their email. Must not benull.emailVerified- Whether the user has verified their email 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 benull.referralLink- The user's referral link. Must not benull.isPaired- Whether the user has a personal and work account. If the current account is personal, thengetTeam()will always benull, butgetIsPaired()will indicate if a work account is linked.accountType- What type of account this user has. Must not benull.rootInfo- The root info for this account. Must not benull.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 ifgetTeam()is present.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
FullAccount
public FullAccount(@Nonnull String accountId, @Nonnull Name name, @Nonnull String email, boolean emailVerified, boolean disabled, @Nonnull String locale, @Nonnull String referralLink, boolean isPaired, @Nonnull AccountType accountType, @Nonnull RootInfo rootInfo) Detailed information about the current user's account.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 email address. Do not rely on this without checking theAccount.getEmailVerified()field. Even then, it's possible that the user has since lost access to their email. Must not benull.emailVerified- Whether the user has verified their email 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 benull.referralLink- The user's referral link. Must not benull.isPaired- Whether the user has a personal and work account. If the current account is personal, thengetTeam()will always benull, butgetIsPaired()will indicate if a work account is linked.accountType- What type of account this user has. Must not benull.rootInfo- The root info for this account. Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getAccountId
The user's unique Dropbox ID.- Overrides:
getAccountIdin classAccount- Returns:
- value for this field, never
null.
-
getName
Details of a user's name. -
getEmail
The user's email address. Do not rely on this without checking theAccount.getEmailVerified()field. Even then, it's possible that the user has since lost access to their email. -
getEmailVerified
public boolean getEmailVerified()Whether the user has verified their email address.- Overrides:
getEmailVerifiedin classAccount- Returns:
- value for this field.
-
getDisabled
public boolean getDisabled()Whether the user has been disabled.- Overrides:
getDisabledin classAccount- Returns:
- value for this field.
-
getLocale
The language that the user specified. Locale tags will be IETF language tags.- Returns:
- value for this field, never
null.
-
getReferralLink
The user's referral link.- Returns:
- value for this field, never
null.
-
getIsPaired
public boolean getIsPaired()Whether the user has a personal and work account. If the current account is personal, thengetTeam()will always benull, butgetIsPaired()will indicate if a work account is linked.- Returns:
- value for this field.
-
getAccountType
What type of account this user has.- Returns:
- value for this field, never
null.
-
getRootInfo
The root info for this account.- Returns:
- value for this field, never
null.
-
getProfilePhotoUrl
URL for the photo representing the user, if one is set.- Overrides:
getProfilePhotoUrlin classAccount- Returns:
- value for this field, or
nullif not present.
-
getCountry
The user's two-letter country code, if available. Country codes are based on ISO 3166-1.- Returns:
- value for this field, or
nullif not present.
-
getTeam
If this account is a member of a team, information about that team.- Returns:
- value for this field, or
nullif not present.
-
getTeamMemberId
This account's unique team member id. This field will only be present ifgetTeam()is present.- Returns:
- value for this field, or
nullif not present.
-
newBuilder
public static FullAccount.Builder newBuilder(String accountId, Name name, String email, boolean emailVerified, boolean disabled, String locale, String referralLink, boolean isPaired, AccountType accountType, RootInfo rootInfo) Returns a new builder for creating an instance of this class.- 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 email address. Do not rely on this without checking theAccount.getEmailVerified()field. Even then, it's possible that the user has since lost access to their email. Must not benull.emailVerified- Whether the user has verified their email 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 benull.referralLink- The user's referral link. Must not benull.isPaired- Whether the user has a personal and work account. If the current account is personal, thengetTeam()will always benull, butgetIsPaired()will indicate if a work account is linked.accountType- What type of account this user has. Must not benull.rootInfo- The root info for this account. Must not benull.- Returns:
- builder for this class.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
hashCode
public int hashCode() -
equals
-
toString
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Overrides:
toStringMultilinein classAccount- Returns:
- Formatted, multiline String representation of this object
-