U
    cc                     @   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                   @   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 )Applicationa   
    An object containing an application ID. This is used to verify that the request was intended for your service.


    :param application_id: A string representing the application identifier for your skill.
    :type application_id: (optional) str

    application_idstrZapplicationIdFNc                 C   s   d| _ || _dS )a  An object containing an application ID. This is used to verify that the request was intended for your service.

        :param application_id: A string representing the application identifier for your skill.
        :type application_id: (optional) str
        N)Z!_Application__discriminator_valuer
   )selfr
    r   =/tmp/pip-unpacked-wheel-urk6bcke/ask_sdk_model/application.py__init__.   s    zApplication.__init__c                 C   s   i }t | jD ]\}}t| |}t|trDttdd |||< qt|trZ|j||< qt	|drr|
 ||< qt|trt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>B   s   z%Application.to_dict.<locals>.<lambda>r   c                 S   sF   t | d dr"| d | d  fS t| d trB| d | d jfS | S )N   r   r   r   )itemr   r   r   r   L   s
    )six	iteritemsdeserialized_typesgetattrr   listmapr   r   r   r   dictitems)r   resultattr_r   r   r   r   r   9   s&    





zApplication.to_dictc                 C   s   t |  S )z.Returns the string representation of the model)pprintpformatr   r   r   r   r   to_strW   s    zApplication.to_strc                 C   s   |   S )zFor `print` and `pprint`)r'   r&   r   r   r   __repr__\   s    zApplication.__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__a   s    
zApplication.__eq__c                 C   s
   | |k S )z*Returns true if both objects are not equalr   r*   r   r   r   __ne__i   s    zApplication.__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   objectr	   r   r   r   r   <module>   s   