U
    g                     @   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-3ysq0mf8/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 )AccountzRepresents 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   