o
    �¨Êh³  ã                   @   st   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	 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)Úvalues)ÚInstanceResource)ÚListResource)ÚPagec                       s6   e Zd ZdZ‡ fdd„Zejfdd„Zdd„ Z‡  Z	S )ÚFeedbackListú  c                    s4   t t| ƒ |¡ ||dœ| _djdi | j¤Ž| _dS )ad  
        Initialize the FeedbackList

        :param Version version: Version that contains the resource
        :param account_sid: The account_sid
        :param message_sid: The message_sid

        :returns: twilio.rest.api.v2010.account.message.feedback.FeedbackList
        :rtype: twilio.rest.api.v2010.account.message.feedback.FeedbackList
        ©Úaccount_sidÚmessage_sidz</Accounts/{account_sid}/Messages/{message_sid}/Feedback.jsonN© )Úsuperr   Ú__init__Ú	_solutionÚformatÚ_uri)ÚselfÚversionr
   r   ©Ú	__class__r   ú`/var/www/html/env/lib/python3.10/site-packages/twilio/rest/api/v2010/account/message/feedback.pyr      s   zFeedbackList.__init__c                 C   s@   t  d|i¡}| jjd| j|d�}t| j|| jd | jd d�S )zï
        Create a new FeedbackInstance

        :param FeedbackInstance.Outcome outcome: The outcome

        :returns: Newly created FeedbackInstance
        :rtype: twilio.rest.api.v2010.account.message.feedback.FeedbackInstance
        ÚOutcomeÚPOST)Údatar
   r   r	   )r   ÚofÚ_versionÚcreater   ÚFeedbackInstancer   )r   Úoutcomer   Úpayloadr   r   r   r   $   s   	ýüzFeedbackList.createc                 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   Úunsetr   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 message_sid: The message_sid

        :returns: twilio.rest.api.v2010.account.message.feedback.FeedbackPage
        :rtype: twilio.rest.api.v2010.account.message.feedback.FeedbackPage
        N)r   r+   r   r   )r   r   ÚresponseÚsolutionr   r   r   r   I   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.message.feedback.FeedbackInstance
        :rtype: twilio.rest.api.v2010.account.message.feedback.FeedbackInstance
        r
   r   r	   )r   r   r   )r   r   r   r   r   Úget_instanceZ   s   	üzFeedbackPage.get_instancec                 C   r    )r!   z<Twilio.Api.V2010.FeedbackPage>r   r"   r   r   r   r#   j   r$   zFeedbackPage.__repr__)r%   r&   r'   r(   r   r.   r#   r*   r   r   r   r   r+   F   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dd„ Z‡  ZS )r   r   c                   @   s   e Zd ZdZdZdS )zFeedbackInstance.OutcomeÚ	confirmedÚumconfirmedN)r%   r&   r'   Ú	CONFIRMEDÚUMCONFIRMEDr   r   r   r   r   w   s    r   c                    s^   t t| ƒ |¡ |d |d |d t |d ¡t |d ¡|d dœ| _d| _||d	œ| _dS )
zÔ
        Initialize the FeedbackInstance

        :returns: twilio.rest.api.v2010.account.message.feedback.FeedbackInstance
        :rtype: twilio.rest.api.v2010.account.message.feedback.FeedbackInstance
        r
   r   r   Údate_createdÚdate_updatedÚuri)r
   r   r   r3   r4   r5   Nr	   )r   r   r   r   Úrfc2822_datetimeÚ_propertiesÚ_contextr   )r   r   r   r
   r   r   r   r   r   {   s   ú
zFeedbackInstance.__init__c                 C   ó
   | j d S )zC
        :returns: The account_sid
        :rtype: unicode
        r
   ©r7   r"   r   r   r   r
   ’   ó   
zFeedbackInstance.account_sidc                 C   r9   )zC
        :returns: The message_sid
        :rtype: unicode
        r   r:   r"   r   r   r   r   š   r;   zFeedbackInstance.message_sidc                 C   r9   )a  
        :returns: unconfirmed or confirmed. If ProvideFeedback=true in the initial HTTP POST, this value will default to unconfirmed. Make an HTTP POST to update this value to confirmed after the message arrives.
        :rtype: FeedbackInstance.Outcome
        r   r:   r"   r   r   r   r   ¢   r;   zFeedbackInstance.outcomec                 C   r9   )zE
        :returns: The date_created
        :rtype: datetime
        r3   r:   r"   r   r   r   r3   ª   r;   zFeedbackInstance.date_createdc                 C   r9   )zE
        :returns: The date_updated
        :rtype: datetime
        r4   r:   r"   r   r   r   r4   ²   r;   zFeedbackInstance.date_updatedc                 C   r9   )z;
        :returns: The uri
        :rtype: unicode
        r5   r:   r"   r   r   r   r5   º   r;   zFeedbackInstance.uric                 C   r    )r!   z#<Twilio.Api.V2010.FeedbackInstance>r   r"   r   r   r   r#   Â   r$   zFeedbackInstance.__repr__)r%   r&   r'   r(   Úobjectr   r   Úpropertyr
   r   r   r3   r4   r5   r#   r*   r   r   r   r   r   t   s"    





r   N)r(   Útwilio.baser   r   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer   Útwilio.base.pager   r   r+   r   r   r   r   r   Ú<module>   s   6.