o
    e                     @   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                       s2   e Zd Z fddZejfddZdd Z  ZS )FeedbackListc                    s4   t t| | ||d| _djdi | j| _dS )a  
        Initialize the FeedbackList

        :param Version version: Version that contains the resource
        :param account_sid: The SID of the Account that created the resource
        :param message_sid: The SID of the Message resource for which the feedback was provided

        :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   a/var/www/html/venv/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 )a   
        Create the FeedbackInstance

        :param FeedbackInstance.Outcome outcome: Whether the feedback has arrived

        :returns: The created FeedbackInstance
        :rtype: twilio.rest.api.v2010.account.message.feedback.FeedbackInstance
        OutcomePOST)methoduri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__7      zFeedbackList.__repr__)	__name__
__module____qualname__r   r   unsetr   r$   __classcell__r   r   r   r   r      s    r   c                       s,   e Zd Z fddZdd Zdd Z  ZS )FeedbackPagec                    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 SID of the Account that created the resource
        :param message_sid: The SID of the Message resource for which the feedback was provided

        :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   C   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_instanceT   s   	zFeedbackPage.get_instancec                 C   r!   )r"   z<Twilio.Api.V2010.FeedbackPage>r   r#   r   r   r   r$   d   r%   zFeedbackPage.__repr__)r&   r'   r(   r   r.   r$   r*   r   r   r   r   r+   A   s    r+   c                       s|   e 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   c                   @   s   e Zd ZdZdZdS )zFeedbackInstance.Outcome	confirmedunconfirmedN)r&   r'   r(   	CONFIRMEDUNCONFIRMEDr   r   r   r   r   p   s    r   c              	      sj   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_updatedr   )r	   r
   r   r3   r4   r   Nr   )	r   r   r   getr   rfc2822_datetime_properties_contextr   )r   r   r    r	   r
   r   r   r   r   t   s   
zFeedbackInstance.__init__c                 C   
   | j d S )zd
        :returns: The SID of the Account that created the resource
        :rtype: unicode
        r	   r7   r#   r   r   r   r	         
zFeedbackInstance.account_sidc                 C   r9   )zw
        :returns: The SID of the Message resource for which the feedback was provided
        :rtype: unicode
        r
   r:   r#   r   r   r   r
      r;   zFeedbackInstance.message_sidc                 C   r9   )ze
        :returns: Whether the feedback has arrived
        :rtype: FeedbackInstance.Outcome
        r   r:   r#   r   r   r   r      r;   zFeedbackInstance.outcomec                 C   r9   )zt
        :returns: The RFC 2822 date and time in GMT that the resource was created
        :rtype: datetime
        r3   r:   r#   r   r   r   r3      r;   zFeedbackInstance.date_createdc                 C   r9   )zy
        :returns: The RFC 2822 date and time in GMT that the resource was last updated
        :rtype: datetime
        r4   r:   r#   r   r   r   r4      r;   zFeedbackInstance.date_updatedc                 C   r9   )zq
        :returns: The URI of the resource, relative to `https://api.twilio.com`
        :rtype: unicode
        r   r:   r#   r   r   r   r      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(   objectr   r   propertyr	   r
   r   r3   r4   r   r$   r*   r   r   r   r   r   n   s     





r   N)__doc__twilio.baser   r   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.pager   r   r+   r   r   r   r   r   <module>   s   1-