U
    Ð~fh´  ã                   @   s:   d dl mZ d dlmZ G dd„ deƒZG dd„ dƒZdS )é    )ÚEnum)ÚOptionalc                   @   s   e Zd ZdZdZdS )Ú
LoginStateZSignInZSignUpN)Ú__name__Ú
__module__Ú__qualname__ZSIGN_INZSIGN_UP© r   r   úK/tmp/pip-unpacked-wheel-_w7xr53_/selenium/webdriver/common/fedcm/account.pyr      s   r   c                   @   sÞ   e Zd ZdZdd„ Zeee dœdd„ƒZeee dœdd„ƒZ	eee dœd	d
„ƒZ
eee dœdd„ƒZeee dœdd„ƒZeee dœdd„ƒZeee dœdd„ƒZeee dœdd„ƒZeee dœdd„ƒZdS )ÚAccountzÌRepresents an account displayed in a FedCM account list.

    See: https://w3c-fedid.github.io/FedCM/#dictdef-identityprovideraccount
         https://w3c-fedid.github.io/FedCM/#webdriver-accountlist
    c                 C   s
   || _ d S )N)Ú_account_data)ÚselfZaccount_datar   r   r	   Ú__init__"   s    zAccount.__init__)Úreturnc                 C   s   | j  d¡S )NZ	accountId©r   Úget©r   r   r   r	   Ú
account_id%   s    zAccount.account_idc                 C   s   | j  d¡S )NÚemailr   r   r   r   r	   r   )   s    zAccount.emailc                 C   s   | j  d¡S )NÚnamer   r   r   r   r	   r   -   s    zAccount.namec                 C   s   | j  d¡S )NZ	givenNamer   r   r   r   r	   Ú
given_name1   s    zAccount.given_namec                 C   s   | j  d¡S )NZ
pictureUrlr   r   r   r   r	   Úpicture_url5   s    zAccount.picture_urlc                 C   s   | j  d¡S )NZidpConfigUrlr   r   r   r   r	   Úidp_config_url9   s    zAccount.idp_config_urlc                 C   s   | j  d¡S )NZtermsOfServiceUrlr   r   r   r   r	   Úterms_of_service_url=   s    zAccount.terms_of_service_urlc                 C   s   | j  d¡S )NZprivacyPolicyUrlr   r   r   r   r	   Úprivacy_policy_urlA   s    zAccount.privacy_policy_urlc                 C   s   | j  d¡S )NZ
loginStater   r   r   r   r	   Úlogin_stateE   s    zAccount.login_stateN)r   r   r   Ú__doc__r   Úpropertyr   Ústrr   r   r   r   r   r   r   r   r   r   r   r   r	   r
      s(   r
   N)Úenumr   Útypingr   r   r
   r   r   r   r	   Ú<module>   s   