o
    �¨Êhæ+  ã                   @   sœ   d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
 ddlmZ G d	d
„ d
e
ƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZdS )za
This code was generated by
\ / _    _  _|   _  _
 | (_)\/(_)(_|\/| |(/_  v1.0.0
      /       /
é    )Údeserialize)Ú	serialize)Úvalues)ÚInstanceContext)ÚInstanceResource)ÚListResource)ÚPagec                       s8   e Zd ZdZ‡ fdd„Zdd„ Zdd„ Zdd	„ Z‡  ZS )
ÚFeedbackListú  c                    s    t t| ƒ |¡ ||dœ| _dS )a�  
        Initialize the FeedbackList

        :param Version version: Version that contains the resource
        :param account_sid: The account_sid
        :param call_sid: A 34-character string that uniquely identifies the Call resource.

        :returns: twilio.rest.api.v2010.account.call.feedback.FeedbackList
        :rtype: twilio.rest.api.v2010.account.call.feedback.FeedbackList
        ©Úaccount_sidÚcall_sidN)Úsuperr	   Ú__init__Ú	_solution©ÚselfÚversionr   r   ©Ú	__class__© ú]/var/www/html/env/lib/python3.10/site-packages/twilio/rest/api/v2010/account/call/feedback.pyr      s   zFeedbackList.__init__c                 C   ó   t | j| jd | jd d�S ©zÉ
        Constructs a FeedbackContext

        :returns: twilio.rest.api.v2010.account.call.feedback.FeedbackContext
        :rtype: twilio.rest.api.v2010.account.call.feedback.FeedbackContext
        r   r   r   ©ÚFeedbackContextÚ_versionr   ©r   r   r   r   Úget%   ó
   ýzFeedbackList.getc                 C   r   r   r   r   r   r   r   Ú__call__2   r   zFeedbackList.__call__c                 C   ó   dS )úz
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z<Twilio.Api.V2010.FeedbackList>r   r   r   r   r   Ú__repr__?   ó   zFeedbackList.__repr__)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r    r#   Ú__classcell__r   r   r   r   r	      s    r	   c                       s0   e Zd ZdZ‡ fdd„Zdd„ Zdd„ Z‡  ZS )ÚFeedbackPager
   c                    s   t t| ƒ ||¡ || _dS )aÅ  
        Initialize the FeedbackPage

        :param Version version: Version that contains the resource
        :param Response response: Response from the API
        :param account_sid: The account_sid
        :param call_sid: A 34-character string that uniquely identifies the Call resource.

        :returns: twilio.rest.api.v2010.account.call.feedback.FeedbackPage
        :rtype: twilio.rest.api.v2010.account.call.feedback.FeedbackPage
        N)r   r*   r   r   )r   r   ÚresponseÚsolutionr   r   r   r   L   s   
zFeedbackPage.__init__c                 C   s   t | j|| jd | jd d�S )a  
        Build an instance of FeedbackInstance

        :param dict payload: Payload response from the API

        :returns: twilio.rest.api.v2010.account.call.feedback.FeedbackInstance
        :rtype: twilio.rest.api.v2010.account.call.feedback.FeedbackInstance
        r   r   r   )ÚFeedbackInstancer   r   )r   Úpayloadr   r   r   Úget_instance]   s   	üzFeedbackPage.get_instancec                 C   r!   )r"   z<Twilio.Api.V2010.FeedbackPage>r   r   r   r   r   r#   m   r$   zFeedbackPage.__repr__)r%   r&   r'   r(   r   r/   r#   r)   r   r   r   r   r*   I   s
    r*   c                       sL   e Zd ZdZ‡ fdd„Zejfdd„Zdd„ Zejfdd	„Z	d
d„ Z
‡  ZS )r   r
   c                    s4   t t| ƒ |¡ ||dœ| _djdi | j¤Ž| _dS )aƒ  
        Initialize the FeedbackContext

        :param Version version: Version that contains the resource
        :param account_sid: The account_sid
        :param call_sid: The call sid that uniquely identifies the call

        :returns: twilio.rest.api.v2010.account.call.feedback.FeedbackContext
        :rtype: twilio.rest.api.v2010.account.call.feedback.FeedbackContext
        r   z6/Accounts/{account_sid}/Calls/{call_sid}/Feedback.jsonNr   )r   r   r   r   ÚformatÚ_urir   r   r   r   r   z   s   zFeedbackContext.__init__c                 C   óN   t  |t |dd„ ¡dœ¡}| jjd| j|d�}t| j|| jd | jd d�S )	á=  
        Create a new FeedbackInstance

        :param unicode quality_score: An integer from 1 to 5
        :param FeedbackInstance.Issues issue: Issues experienced during the call

        :returns: Newly created FeedbackInstance
        :rtype: twilio.rest.api.v2010.account.call.feedback.FeedbackInstance
        c                 S   ó   | S ©Nr   ©Úer   r   r   Ú<lambda>•   ó    z(FeedbackContext.create.<locals>.<lambda>©ÚQualityScoreÚIssueÚPOST©Údatar   r   r   )	r   Úofr   Úmapr   Úcreater1   r-   r   ©r   Úquality_scoreÚissuer?   r.   r   r   r   rB   ‹   ó   
ýüzFeedbackContext.createc                 C   s<   t  i ¡}| jjd| j|d�}t| j|| jd | jd d�S )ú£
        Fetch a FeedbackInstance

        :returns: Fetched FeedbackInstance
        :rtype: twilio.rest.api.v2010.account.call.feedback.FeedbackInstance
        ÚGET)Úparamsr   r   r   )r   r@   r   Úfetchr1   r-   r   )r   rI   r.   r   r   r   rJ   ¤   s   
ýüzFeedbackContext.fetchc                 C   r2   )	á5  
        Update the FeedbackInstance

        :param unicode quality_score: An integer from 1 to 5
        :param FeedbackInstance.Issues issue: Issues experienced during the call

        :returns: Updated FeedbackInstance
        :rtype: twilio.rest.api.v2010.account.call.feedback.FeedbackInstance
        c                 S   r4   r5   r   r6   r   r   r   r8   Ä   r9   z(FeedbackContext.update.<locals>.<lambda>r:   r=   r>   r   r   r   )	r   r@   r   rA   r   Úupdater1   r-   r   rC   r   r   r   rL   º   rF   zFeedbackContext.updatec                 C   ó$   d  dd„ | j ¡ D ƒ¡}d |¡S )r"   ú c                 s   ó    � | ]\}}d   ||¡V  qdS ©z{}={}N©r0   ©Ú.0ÚkÚvr   r   r   Ú	<genexpr>Ú   ó   € z+FeedbackContext.__repr__.<locals>.<genexpr>z%<Twilio.Api.V2010.FeedbackContext {}>©Újoinr   Úitemsr0   ©r   Úcontextr   r   r   r#   Ó   ó   
zFeedbackContext.__repr__)r%   r&   r'   r(   r   r   ÚunsetrB   rJ   rL   r#   r)   r   r   r   r   r   w   s    r   c                       s°   e Zd ZdZG dd„ deƒZ‡ fdd„Zedd„ ƒZedd	„ ƒZ	ed
d„ ƒZ
edd„ ƒZedd„ ƒZedd„ ƒZedd„ ƒZejfdd„Zdd„ Zejfdd„Zdd„ Z‡  ZS )r-   r
   c                   @   s,   e Zd ZdZdZdZdZdZdZdZ	dZ
d	S )
zFeedbackInstance.Issueszaudio-latencyzdigits-not-capturedzdropped-callzimperfect-audiozincorrect-caller-idzone-way-audiozpost-dial-delayzunsolicited-callN)r%   r&   r'   ÚAUDIO_LATENCYÚDIGITS_NOT_CAPTUREDÚDROPPED_CALLÚIMPERFECT_AUDIOÚINCORRECT_CALLER_IDÚONE_WAY_AUDIOÚPOST_DIAL_DELAYÚUNSOLICITED_CALLr   r   r   r   ÚIssuesá   s    rg   c                    sd   t t| ƒ |¡ |d t |d ¡t |d ¡|d t |d ¡|d dœ| _d| _||d	œ| _dS )
zÎ
        Initialize the FeedbackInstance

        :returns: twilio.rest.api.v2010.account.call.feedback.FeedbackInstance
        :rtype: twilio.rest.api.v2010.account.call.feedback.FeedbackInstance
        r   Údate_createdÚdate_updatedÚissuesrD   Úsid)r   rh   ri   rj   rD   rk   Nr   )	r   r-   r   r   Úrfc2822_datetimeÚintegerÚ_propertiesÚ_contextr   )r   r   r.   r   r   r   r   r   r   ë   s   ú
zFeedbackInstance.__init__c                 C   s.   | j du rt| j| jd | jd d�| _ | j S )a8  
        Generate an instance context for the instance, the context is capable of
        performing various actions.  All instance actions are proxied to the context

        :returns: FeedbackContext for this FeedbackInstance
        :rtype: twilio.rest.api.v2010.account.call.feedback.FeedbackContext
        Nr   r   r   )ro   r   r   r   r   r   r   r   Ú_proxy  s   
	ýzFeedbackInstance._proxyc                 C   ó
   | j d S )zC
        :returns: The account_sid
        :rtype: unicode
        r   ©rn   r   r   r   r   r     ó   
zFeedbackInstance.account_sidc                 C   rq   )zE
        :returns: The date_created
        :rtype: datetime
        rh   rr   r   r   r   r   rh     rs   zFeedbackInstance.date_createdc                 C   rq   )zE
        :returns: The date_updated
        :rtype: datetime
        ri   rr   r   r   r   r   ri   #  rs   zFeedbackInstance.date_updatedc                 C   rq   )zN
        :returns: The issues
        :rtype: FeedbackInstance.Issues
        rj   rr   r   r   r   r   rj   +  rs   zFeedbackInstance.issuesc                 C   rq   )zH
        :returns: 1 to 5 quality score
        :rtype: unicode
        rD   rr   r   r   r   r   rD   3  rs   zFeedbackInstance.quality_scorec                 C   rq   )z;
        :returns: The sid
        :rtype: unicode
        rk   rr   r   r   r   r   rk   ;  rs   zFeedbackInstance.sidc                 C   ó   | j j||d�S )r3   ©rE   )rp   rB   ©r   rD   rE   r   r   r   rB   C  ó   
zFeedbackInstance.createc                 C   s
   | j  ¡ S )rG   )rp   rJ   r   r   r   r   rJ   O  s   
zFeedbackInstance.fetchc                 C   rt   )rK   ru   )rp   rL   rv   r   r   r   rL   X  rw   zFeedbackInstance.updatec                 C   rM   )r"   rN   c                 s   rO   rP   rQ   rR   r   r   r   rV   k  rW   z,FeedbackInstance.__repr__.<locals>.<genexpr>z&<Twilio.Api.V2010.FeedbackInstance {}>rX   r[   r   r   r   r#   d  r]   zFeedbackInstance.__repr__)r%   r&   r'   r(   Úobjectrg   r   Úpropertyrp   r   rh   ri   rj   rD   rk   r   r^   rB   rJ   rL   r#   r)   r   r   r   r   r-   Þ   s,    







	r-   N)r(   Útwilio.baser   r   r   Útwilio.base.instance_contextr   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer   Útwilio.base.pager   r	   r*   r   r-   r   r   r   r   Ú<module>   s   7.g