o
    ee                     @   s,   d dl T d dlmZmZ G dd deZdS )    )*)PlivoXMLElementmap_typec                       sd   e Zd ZdZg Zedd Zejdd Zee	e
j gddd Z	d fd	d
	Zdd Z  ZS )PlayElementPlayc                 C   s   | j S N)_PlayElement__loop)self r
   H/var/www/html/venv/lib/python3.10/site-packages/plivo/xml/playElement.pyloop	   s   zPlayElement.loopc                 C   s    |d urt || _d S d | _d S r   )intr   r	   valuer
   r
   r   r      s    )r   c                 C   s
   || _ | S r   )r   r   r
   r
   r   set_loop   s   zPlayElement.set_loopNc                    s   t t|   || _|| _d S r   )superr   __init__contentr   )r	   r   r   	__class__r
   r   r      s   
zPlayElement.__init__c                 C   s   d| j i}dd | D S )Nr   c                 S   s(   i | ]\}}|d ur|t t|qS r   )six	text_typer   ).0kvr
   r
   r   
<dictcomp>&   s    z'PlayElement.to_dict.<locals>.<dictcomp>)r   items)r	   dr
   r
   r   to_dict"   s
   zPlayElement.to_dictr   )__name__
__module____qualname___name	_nestablepropertyr   settervalidate_argsof_typer   integer_typesr   r   r   __classcell__r
   r
   r   r   r      s    




r   N)plivo.utils.validators	plivo.xmlr   r   r   r
   r
   r
   r   <module>   s    