dropbox.seen_state – Seen State

class dropbox.seen_state.PlatformType(tag, value=None)

Bases: stone.backends.python_rsrc.stone_base.Union

Possible platforms on which a user may view content.

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 corresponding get_* method.

Variables:
api = PlatformType(u'api', None)
desktop = PlatformType(u'desktop', None)
is_api()

Check if the union tag is api.

Return type:bool
is_desktop()

Check if the union tag is desktop.

Return type:bool
is_mobile()

Check if the union tag is mobile.

Return type:bool
is_mobile_android()

Check if the union tag is mobile_android.

Return type:bool
is_mobile_ios()

Check if the union tag is mobile_ios.

Return type:bool
is_other()

Check if the union tag is other.

Return type:bool
is_unknown()

Check if the union tag is unknown.

Return type:bool
is_web()

Check if the union tag is web.

Return type:bool
mobile = PlatformType(u'mobile', None)
mobile_android = PlatformType(u'mobile_android', None)
mobile_ios = PlatformType(u'mobile_ios', None)
other = PlatformType(u'other', None)
unknown = PlatformType(u'unknown', None)
web = PlatformType(u'web', None)