o
    1_Wc                     @   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)CaptionDatac                   @   sf   e Zd ZdZddddddZdddd	d
dZdZdddZdd Zdd Z	dd Z
dd Zdd ZdS )Streama  

    :param expected_previous_token: 
    :type expected_previous_token: (optional) str
    :param token: 
    :type token: (optional) str
    :param url: 
    :type url: (optional) str
    :param offset_in_milliseconds: 
    :type offset_in_milliseconds: (optional) int
    :param caption_data: 
    :type caption_data: (optional) ask_sdk_model.interfaces.audioplayer.caption_data.CaptionData

    strintz=ask_sdk_model.interfaces.audioplayer.caption_data.CaptionData)expected_previous_tokentokenurloffset_in_millisecondscaption_dataZexpectedPreviousTokenr   r   ZoffsetInMillisecondsZcaptionDataFNc                 C   s(   d| _ || _|| _|| _|| _|| _dS )a  

        :param expected_previous_token: 
        :type expected_previous_token: (optional) str
        :param token: 
        :type token: (optional) str
        :param url: 
        :type url: (optional) str
        :param offset_in_milliseconds: 
        :type offset_in_milliseconds: (optional) int
        :param caption_data: 
        :type caption_data: (optional) ask_sdk_model.interfaces.audioplayer.caption_data.CaptionData
        N)Z_Stream__discriminator_valuer   r   r   r   r   )selfr   r   r   r   r    r   MD:\Flask\env\Lib\site-packages\ask_sdk_model/interfaces/audioplayer/stream.py__init__=   s   
zStream.__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>]   s    z Stream.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   g   s
   )six	iteritemsdeserialized_typesgetattrr   listmapr   r   r   r   dictitems)r   resultattr_r   r   r   r   r   T   s&   





zStream.to_dictc                 C   s   t |  S )z.Returns the string representation of the model)pprintpformatr   r   r   r   r   to_strr   s   zStream.to_strc                 C   s   |   S )zFor `print` and `pprint`)r-   r,   r   r   r   __repr__w   s   zStream.__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__|   s   
zStream.__eq__c                 C   s
   | |k S )z*Returns true if both objects are not equalr   r0   r   r   r   __ne__   s   
zStream.__ne__)NNNNN)__name__
__module____qualname____doc__r!   Zattribute_mapZsupports_multiple_typesr   r   r-   r.   r2   r3   r   r   r   r   r
      s*    	
r
   )r*   rer   typingenumr   TYPE_CHECKINGr   r   r   r   r   r   Z1ask_sdk_model.interfaces.audioplayer.caption_datar	   ZCaptionData_e119f120objectr
   r   r   r   r   <module>   s   