dropbox.users_common – Users Common
This namespace contains common data types used within the users namespace.
- class dropbox.users_common.AccountType(tag, value=None)
Bases:
UnionWhat type of account this user has.
This class acts as a tagged union. Only one of the
is_*methods will return true. To get the associated value of a tag (if one exists), use the correspondingget_*method.- Variables:
users_common.AccountType.basic – The basic account type.
users_common.AccountType.pro – The Dropbox Pro account type.
users_common.AccountType.business – The Dropbox Business account type.
- basic = AccountType('basic', None)
- business = AccountType('business', None)
- is_basic()
Check if the union tag is
basic.- Return type:
bool
- is_business()
Check if the union tag is
business.- Return type:
bool
- is_pro()
Check if the union tag is
pro.- Return type:
bool
- pro = AccountType('pro', None)