U
    ÍZj	  ã                   @   sn   d dl Z d dlZd dlZd dlZd dlmZ ejrZd dlmZmZm	Z	m
Z
mZ d dlmZ G dd„ deƒZdS )é    N)ÚEnum)ÚDictÚListÚOptionalÚUnionÚAny)Údatetimec                   @   sD   e 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S )ÚDialogStateuV  
    Enumeration indicating the status of the multi-turn dialog. This property is included if the skill meets the requirements to use the Dialog directives. Note that COMPLETED is only possible when you use the Dialog.Delegate directive. If you use intent confirmation, dialogState is considered COMPLETED if the user denies the entire intent (for instance, by answering â€œnoâ€� when asked the confirmation prompt). Be sure to also check the confirmationStatus property on the Intent object before fulfilling the userâ€™s request.



    Allowed enum values: [STARTED, IN_PROGRESS, COMPLETED]
    ÚSTARTEDÚIN_PROGRESSÚ	COMPLETEDc                 C   s   | j | ji}|S )z&Returns the model properties as a dict)ÚnameÚvalue)ÚselfÚresult© r   ú]/var/www/html/TRUCKING_PROJECT/venv/lib/python3.8/site-packages/ask_sdk_model/dialog_state.pyÚto_dict(   s    zDialogState.to_dictc                 C   s   t  | j¡S )z.Returns the string representation of the model)ÚpprintÚpformatr   ©r   r   r   r   Úto_str.   s    zDialogState.to_strc                 C   s   |   ¡ S )zFor `print` and `pprint`)r   r   r   r   r   Ú__repr__3   s    zDialogState.__repr__c                 C   s   t |tƒsdS | j|jkS )z&Returns true if both objects are equalF)Ú
isinstancer	   Ú__dict__©r   Úotherr   r   r   Ú__eq__8   s    
zDialogState.__eq__c                 C   s
   | |k S )z*Returns true if both objects are not equalr   r   r   r   r   Ú__ne__@   s    zDialogState.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r
   r   r   r   r   r   r   r   r   r   r   r   r	      s   r	   )r   ÚreÚsixÚtypingÚenumr   ÚTYPE_CHECKINGr   r   r   r   r   r   r	   r   r   r   r   Ú<module>   s   