o
    È6÷dÜ  ã                	   @   s  d dl mZ d dlmZ d dlmZ G dd„ dejƒZe e¡Z	e 
¡ e_e 
¡ e_e 
¡ e_e 
¡ e_e 
¡ e_e 
¡ e_e 
¡ e_e 
¡ e_ejejejejejejejejdœe_edƒe_edƒe_ed	ƒe_ed
ƒe_edƒe_edƒe_edƒe_edƒe_i ZdS )é    )Úunicode_literals)Ú
stone_base)Ústone_validatorsc                       s„   e Zd ZdZdZdZdZdZdZdZ	dZ
dZdZdd„ Zdd„ Zdd	„ Zd
d„ Zdd„ Zdd„ Zdd„ Zdd„ Z‡ fdd„Z‡  ZS )ÚPlatformTypeaÊ  
    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.

    :ivar seen_state.PlatformType.web: The content was viewed on the web.
    :ivar seen_state.PlatformType.desktop: The content was viewed on a desktop
        client.
    :ivar seen_state.PlatformType.mobile_ios: The content was viewed on a mobile
        iOS client.
    :ivar seen_state.PlatformType.mobile_android: The content was viewed on a
        mobile android client.
    :ivar seen_state.PlatformType.api: The content was viewed from an API
        client.
    :ivar seen_state.PlatformType.unknown: The content was viewed on an unknown
        platform.
    :ivar seen_state.PlatformType.mobile: The content was viewed on a mobile
        client. DEPRECATED: Use mobile_ios or mobile_android instead.
    ÚotherNc                 C   ó
   | j dkS )zJ
        Check if the union tag is ``web``.

        :rtype: bool
        Úweb©Z_tag©Úself© r   úiC:\Users\jesus\OneDrive\Desktop\erpjis_fastapi\backend\jisbackend\Lib\site-packages\dropbox/seen_state.pyÚis_web3   ó   
zPlatformType.is_webc                 C   r   )zN
        Check if the union tag is ``desktop``.

        :rtype: bool
        Údesktopr	   r
   r   r   r   Ú
is_desktop;   r   zPlatformType.is_desktopc                 C   r   )zQ
        Check if the union tag is ``mobile_ios``.

        :rtype: bool
        Ú
mobile_iosr	   r
   r   r   r   Úis_mobile_iosC   r   zPlatformType.is_mobile_iosc                 C   r   )zU
        Check if the union tag is ``mobile_android``.

        :rtype: bool
        Úmobile_androidr	   r
   r   r   r   Úis_mobile_androidK   r   zPlatformType.is_mobile_androidc                 C   r   )zJ
        Check if the union tag is ``api``.

        :rtype: bool
        Úapir	   r
   r   r   r   Úis_apiS   r   zPlatformType.is_apic                 C   r   )zN
        Check if the union tag is ``unknown``.

        :rtype: bool
        Úunknownr	   r
   r   r   r   Ú
is_unknown[   r   zPlatformType.is_unknownc                 C   r   )zM
        Check if the union tag is ``mobile``.

        :rtype: bool
        Úmobiler	   r
   r   r   r   Ú	is_mobilec   r   zPlatformType.is_mobilec                 C   r   )zL
        Check if the union tag is ``other``.

        :rtype: bool
        r   r	   r
   r   r   r   Úis_otherk   r   zPlatformType.is_otherc                    s   t t| ƒ |||¡ d S )N)Úsuperr   Ú_process_custom_annotations)r   Zannotation_typeZ
field_pathÚ	processor©Ú	__class__r   r   r   s   s   z(PlatformType._process_custom_annotations)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Z
_catch_allr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   Ú__classcell__r   r   r    r   r   
   s(    r   )r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   N)Ú
__future__r   Zstone.backends.python_rsrcr   Zbbr   ZbvÚUnionr   ZPlatformType_validatorZVoidZ_web_validatorZ_desktop_validatorZ_mobile_ios_validatorZ_mobile_android_validatorZ_api_validatorZ_unknown_validatorZ_mobile_validatorZ_other_validatorZ_tagmapr   r   r   r   r   r   r   r   ZROUTESr   r   r   r   Ú<module>   s>   
l







ø







