B
    `                 @   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                s0   t t| | ||d| _djf | 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__ ]/home/dcms/DCMS/lib/python3.7/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	   )r   Zof_versioncreater   FeedbackInstancer   )r   outcomer   payloadr   r   r   r   #   s    	zFeedbackList.createc             C   s   dS )zz
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z<Twilio.Api.V2010.FeedbackList>r   )r   r   r   r   __repr__7   s    zFeedbackList.__repr__)	__name__
__module____qualname__r   r   Z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   responseZsolution)r   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   r   get_instanceT   s
    	zFeedbackPage.get_instancec             C   s   dS )zz
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z<Twilio.Api.V2010.FeedbackPage>r   )r   r   r   r   r   d   s    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.OutcomeZ	confirmedZunconfirmedN)r   r    r!   Z	CONFIRMEDZ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   r&   r'   r   N)r   r	   )	r
   r   r   getr   Zrfc2822_datetime_properties_contextr   )r   r   r   r   r	   )r   r   r   r   t   s    zFeedbackInstance.__init__c             C   s
   | j d S )zd
        :returns: The SID of the Account that created the resource
        :rtype: unicode
        r   )r)   )r   r   r   r   r      s    zFeedbackInstance.account_sidc             C   s
   | j d S )zw
        :returns: The SID of the Message resource for which the feedback was provided
        :rtype: unicode
        r	   )r)   )r   r   r   r   r	      s    zFeedbackInstance.message_sidc             C   s
   | j d S )ze
        :returns: Whether the feedback has arrived
        :rtype: FeedbackInstance.Outcome
        r   )r)   )r   r   r   r   r      s    zFeedbackInstance.outcomec             C   s
   | j d S )zt
        :returns: The RFC 2822 date and time in GMT that the resource was created
        :rtype: datetime
        r&   )r)   )r   r   r   r   r&      s    zFeedbackInstance.date_createdc             C   s
   | j d S )zy
        :returns: The RFC 2822 date and time in GMT that the resource was last updated
        :rtype: datetime
        r'   )r)   )r   r   r   r   r'      s    zFeedbackInstance.date_updatedc             C   s
   | j d S )zq
        :returns: The URI of the resource, relative to `https://api.twilio.com`
        :rtype: unicode
        r   )r)   )r   r   r   r   r      s    zFeedbackInstance.uric             C   s   dS )zz
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z#<Twilio.Api.V2010.FeedbackInstance>r   )r   r   r   r   r      s    zFeedbackInstance.__repr__)r   r    r!   objectr   r   propertyr   r	   r   r&   r'   r   r   r"   r   r   )r   r   r   n   s   r   N)__doc__Ztwilio.baser   r   Ztwilio.base.instance_resourcer   Ztwilio.base.list_resourcer   Ztwilio.base.pager   r   r#   r   r   r   r   r   <module>   s   1-