o
    1_WcW  ã                   @   sz   d dl Z d dlZd dlZd dlZd dlmZ ejr3d dlmZmZm	Z	m
Z
mZ d dlmZ d dlmZ G dd„ deƒZdS )é    N)ÚEnum)ÚDictÚListÚOptionalÚUnionÚAny)Údatetime)Ú
Resolutionc                   @   sV   e Zd ZdZddiZddiZdZddd„Zd	d
„ Zdd„ Z	dd„ Z
dd„ Zdd„ ZdS )ÚResolutionsaÎ  
    Represents the results of resolving the words captured from the user&#39;s utterance. This is included for slots that use a custom slot type or a built-in slot type that you have extended with your own values. Note that resolutions is not included for built-in slot types that you have not extended.


    :param resolutions_per_authority: 
    :type resolutions_per_authority: (optional) list[ask_sdk_model.slu.entityresolution.resolution.Resolution]

    Úresolutions_per_authorityz>list[ask_sdk_model.slu.entityresolution.resolution.Resolution]ZresolutionsPerAuthorityFNc                 C   s   d| _ || _dS )aÓ  Represents the results of resolving the words captured from the user&#39;s utterance. This is included for slots that use a custom slot type or a built-in slot type that you have extended with your own values. Note that resolutions is not included for built-in slot types that you have not extended.

        :param resolutions_per_authority: 
        :type resolutions_per_authority: (optional) list[ask_sdk_model.slu.entityresolution.resolution.Resolution]
        N)Z!_Resolutions__discriminator_valuer   )Úselfr   © r   úPD:\Flask\env\Lib\site-packages\ask_sdk_model/slu/entityresolution/resolutions.pyÚ__init__/   s   
zResolutions.__init__c                 C   s¦   i }t  | j¡D ]H\}}t| |ƒ}t|tƒr"ttdd„ |ƒƒ||< qt|tƒr-|j||< qt	|dƒr9| 
¡ ||< qt|tƒrLttdd„ | ¡ ƒƒ||< q|||< q|S )z&Returns the model properties as a dictc                 S   s&   t | dƒr	|  ¡ S t| tƒr| jS | S )NÚto_dict©Úhasattrr   Ú
isinstancer   Úvalue)Úxr   r   r   Ú<lambda>C   s    z%Resolutions.to_dict.<locals>.<lambda>r   c                 S   sF   t | d dƒr| d | d  ¡ fS t| d tƒr!| d | d jfS | S )Né   r   r   r   )Úitemr   r   r   r   M   s
   ÿÿ)ÚsixÚ	iteritemsÚdeserialized_typesÚgetattrr   ÚlistÚmapr   r   r   r   ÚdictÚitems)r   ÚresultÚattrÚ_r   r   r   r   r   :   s&   

ý


û
zResolutions.to_dictc                 C   s   t  |  ¡ ¡S )z.Returns the string representation of the model)ÚpprintÚpformatr   ©r   r   r   r   Úto_strX   s   zResolutions.to_strc                 C   s   |   ¡ S )zFor `print` and `pprint`)r'   r&   r   r   r   Ú__repr__]   s   zResolutions.__repr__c                 C   s   t |tƒsdS | j|jkS )z&Returns true if both objects are equalF)r   r
   Ú__dict__©r   Úotherr   r   r   Ú__eq__b   s   
zResolutions.__eq__c                 C   s
   | |k S )z*Returns true if both objects are not equalr   r*   r   r   r   Ú__ne__j   s   
zResolutions.__ne__)N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Zattribute_mapZsupports_multiple_typesr   r   r'   r(   r,   r-   r   r   r   r   r
      s    	ÿÿ
r
   )r$   Úrer   ÚtypingÚenumr   ÚTYPE_CHECKINGr   r   r   r   r   r   Z-ask_sdk_model.slu.entityresolution.resolutionr	   ZResolution_fcf523b1Úobjectr
   r   r   r   r   Ú<module>   s   