
    d{i                         d Z ddlmZ ddlmZmZmZmZ ddlmZ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
e      Z G d de      Zy)a  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Api
    This is the public Twilio REST API.

    NOTE: This class is auto generated by OpenAPI Generator.
    https://openapi-generator.tech
    Do not edit the class manually.
    )datetime)AnyDictOptionalUnion)deserializevalues)ApiResponse)InstanceResource)ListResource)Versionc                   ^     e Zd Z G d de      Z	 dedeeef   dedef fdZ	defd	Z
 xZS )
FeedbackInstancec                       e Zd ZdZdZy)FeedbackInstance.Outcome	confirmedunconfirmedN)__name__
__module____qualname__	CONFIRMEDUNCONFIRMED     l/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/api/v2010/account/message/feedback.pyOutcomer      s    	#r   r   versionpayloadaccount_sidmessage_sidc                    t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        t        j                  |j                  d            | _        t        j                  |j                  d            | _	        |j                  d      | _
        ||d| _        y )Nr   r    outcomedate_createddate_updatedurir   r    )super__init__getr   r    r"   r   rfc2822_datetimer#   r$   r%   	_solution)selfr   r   r   r    	__class__s        r   r(   zFeedbackInstance.__init__(   s     	!*1++m*D*1++m*D=D[[=S0;0L0LKK'1
 1<0L0LKK'1
 #*++e"4 '&
r   returnc                     dj                  d | j                  j                         D              }dj                  |      S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c              3   F   K   | ]  \  }}d j                  ||        yw)z{}={}N)format).0kvs      r   	<genexpr>z,FeedbackInstance.__repr__.<locals>.<genexpr>G   s     SDAq7>>!Q/Ss   !z&<Twilio.Api.V2010.FeedbackInstance {}>)joinr+   itemsr3   )r,   contexts     r   __repr__zFeedbackInstance.__repr__A   s6     ((SDNN<P<P<RSS7>>wGGr   )r   r   r   objectr   r   r   strr   r(   r;   __classcell__r-   s   @r   r   r      sU    $& $

 c3h
 	

 
2H# Hr   r   c                   d    e Zd Zdededef fdZej                  fdede	f   de
fdZej                  fdede	f   defd	Zej                  fdede	f   defd
Zej                  fdede	f   de
fdZej                  fdede	f   defdZej                  fdede	f   defdZdefdZ xZS )FeedbackListr   r   r    c                 z    t         |   |       ||d| _         dj                  di | j                  | _        y)aw  
        Initialize the FeedbackList

        :param version: Version that contains the resource
        :param account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with the Message resource for which to create MessageFeedback.
        :param message_sid: The SID of the Message resource for which to create MessageFeedback.

        r&   z</Accounts/{account_sid}/Messages/{message_sid}/Feedback.jsonNr   )r'   r(   r+   r3   _uri)r,   r   r   r    r-   s       r   r(   zFeedbackList.__init__M   sJ     	! '&

 RJQQ .. 		r   r"   r   r.   c                     t        j                  d|i      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||      S )z{
        Internal helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        r   Content-Type!application/x-www-form-urlencodedapplication/jsonAcceptPOSTmethodr%   dataheaders)r	   of_versioncreate_with_response_inforC   r,   r"   rL   rM   s       r   _createzFeedbackList._createc   so     yy7

 ))^-PQR"E.}}66tyytW 7 
 	
r   c                     | j                  |      \  }}}t        | j                  || j                  d   | j                  d         S )zv
        Create the FeedbackInstance

        :param outcome:

        :returns: The created FeedbackInstance
        r"   r   r    r&   )rR   r   rO   r+   r,   r"   r   _s       r   createzFeedbackList.create|   sI     W5AMM}5}5	
 	
r   c                     | j                  |      \  }}}t        | j                  || j                  d   | j                  d         }t	        |||      S )z
        Create the FeedbackInstance and return response metadata

        :param outcome:

        :returns: ApiResponse with instance, status code, and headers
        rT   r   r    r&   rL   status_coderM   )rR   r   rO   r+   r
   r,   r"   r   rZ   rM   instances         r   create_with_http_infoz"FeedbackList.create_with_http_info   sX     )-W(E%g#MM}5}5	
 k7SSr   c                    K   t        j                  d|i      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||       d{   S 7 w)	z
        Internal async helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        r   rE   rF   rG   rH   rI   rJ   N)r	   rN   rO   create_with_response_info_asyncrC   rQ   s       r   _create_asynczFeedbackList._create_async   s~      yy7

 ))^-PQR"E.]]BBtyytW C 
 
 	
 
s   A%A.'A,(A.c                    K   | j                  |       d{   \  }}}t        | j                  || j                  d   | j                  d         S 7 ;w)z
        Asynchronously create the FeedbackInstance

        :param outcome:

        :returns: The created FeedbackInstance
        rT   Nr   r    r&   )r`   r   rO   r+   rU   s       r   create_asynczFeedbackList.create_async   sY      #000AAAMM}5}5	
 	
 Bs   AA<Ac                    K   | j                  |       d{   \  }}}t        | j                  || j                  d   | j                  d         }t	        |||      S 7 Iw)z
        Asynchronously create the FeedbackInstance and return response metadata

        :param outcome:

        :returns: ApiResponse with instance, status code, and headers
        rT   Nr   r    r&   rY   )r`   r   rO   r+   r
   r[   s         r   create_with_http_info_asyncz(FeedbackList.create_with_http_info_async   sh      /3.@.@.@.Q(Q%g#MM}5}5	
 k7SS )Rs   A$A"A
A$c                      y)r0   z<Twilio.Api.V2010.FeedbackList>r   )r,   s    r   r;   zFeedbackList.__repr__   s     1r   )r   r   r   r   r=   r(   r	   unsetr   r<   tuplerR   r   rW   r
   r]   r`   rb   rd   r;   r>   r?   s   @r   rA   rA   K   s1   
 
c 
 
. DJ<<
7?@
	
4 DJ<<
7?@
	
& DJ<<T7?@T	T( DJ<<
7?@
	
4 DJ<<
7?@
	
& DJ<<T7?@T	T&1# 1r   rA   N)__doc__r   typingr   r   r   r   twilio.baser   r	   twilio.base.api_responser
   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r   rA   r   r   r   <module>ro      sB     - - + 0 : 2 '/H' /HdZ1< Z1r   