
    i?1i.                         d Z ddlmZ ddlmZmZmZmZmZ ddlm	Z	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 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ListOptionalUnion)deserialize	serializevalues)InstanceContext)InstanceResource)ListResource)Versionc                   8    e Zd Z G d de      Z	 dedeeef   dedef fdZ	e
dd	       Zdd
ZddZej                  ej                  fdeeef   deed   ef   dd fdZej                  ej                  fdeeef   deed   ef   dd fdZdefdZ xZS )FeedbackInstancec                   ,    e Zd ZdZdZdZdZdZdZdZ	dZ
y	)
FeedbackInstance.Issueszaudio-latencyzdigits-not-capturedzdropped-callzimperfect-audiozincorrect-caller-idzone-way-audiozpost-dial-delayzunsolicited-callN)__name__
__module____qualname__AUDIO_LATENCYDIGITS_NOT_CAPTUREDDROPPED_CALLIMPERFECT_AUDIOINCORRECT_CALLER_IDONE_WAY_AUDIOPOST_DIAL_DELAYUNSOLICITED_CALL     u/home/www/therecruiter.miabetepe.com/venv/lib/python3.12/site-packages/twilio/rest/api/v2010/account/call/feedback.pyIssuesr      s-    '3%+3'+-r    r"   versionpayloadaccount_sidcall_sidc                    t         |   |       |j                  d      | _        t	        j
                  |j                  d            | _        t	        j
                  |j                  d            | _        |j                  d      | _        t	        j                  |j                  d            | _
        |j                  d      | _        ||d| _        d | _        y )Nr%   date_createddate_updatedissuesquality_scoresidr%   r&   )super__init__getr%   r	   rfc2822_datetimer(   r)   r*   integerr+   r,   	_solution_context)selfr#   r$   r%   r&   	__class__s        r!   r/   zFeedbackInstance.__init__-   s     	!*1++m*D0;0L0LKK'1
 1<0L0LKK'1
 BIXAV,7,?,?KK(-
 #*++e"4 ' 
 48r    returnc                     | j                   7t        | j                  | j                  d   | j                  d         | _         | j                   S )z
        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
        r%   r&   r-   )r4   FeedbackContext_versionr3   r5   s    r!   _proxyzFeedbackInstance._proxyE   sE     == + NN=9
3DM
 }}r    c                 6    | j                   j                         S )]
        Fetch the FeedbackInstance


        :returns: The fetched FeedbackInstance
        )r<   fetchr;   s    r!   r?   zFeedbackInstance.fetchU   s     {{  ""r    c                 R   K   | j                   j                          d{   S 7 w)w
        Asynchronous coroutine to fetch the FeedbackInstance


        :returns: The fetched FeedbackInstance
        N)r<   fetch_asyncr;   s    r!   rB   zFeedbackInstance.fetch_async^   s!      [[,,....s   '%'r+   issuer   c                 <    | j                   j                  ||      S )  
        Update the FeedbackInstance

        :param quality_score: The call quality expressed as an integer from `1` to `5` where `1` represents very poor call quality and `5` represents a perfect call.
        :param issue: One or more issues experienced during the call. The issues can be: `imperfect-audio`, `dropped-call`, `incorrect-caller-id`, `post-dial-delay`, `digits-not-captured`, `audio-latency`, `unsolicited-call`, or `one-way-audio`.

        :returns: The updated FeedbackInstance
        r+   rC   )r<   updater5   r+   rC   s      r!   rG   zFeedbackInstance.updateg   s&     {{!!' " 
 	
r    c                 X   K   | j                   j                  ||       d{   S 7 w)  
        Asynchronous coroutine to update the FeedbackInstance

        :param quality_score: The call quality expressed as an integer from `1` to `5` where `1` represents very poor call quality and `5` represents a perfect call.
        :param issue: One or more issues experienced during the call. The issues can be: `imperfect-audio`, `dropped-call`, `incorrect-caller-id`, `post-dial-delay`, `digits-not-captured`, `audio-latency`, `unsolicited-call`, or `one-way-audio`.

        :returns: The updated FeedbackInstance
        rF   N)r<   update_asyncrH   s      r!   rK   zFeedbackInstance.update_asyncy   s4      [[--' . 
 
 	
 
s   !*(*c                     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>        SDAq7>>!Q/S   !z&<Twilio.Api.V2010.FeedbackInstance {}>joinr3   itemsrR   r5   contexts     r!   __repr__zFeedbackInstance.__repr__   s6     ((SDNN<P<P<RSS7>>wGGr    )r7   r9   )r7   r   )r   r   r   objectr"   r   r   strr   r/   propertyr<   r?   rB   r   unsetr   intr   rG   rK   r_   __classcell__r6   s   @r!   r   r      s   . .88)-c3h8FI8UX80  #/ -3LL@F
S&[)
 T34f<=
 
	
( -3LL@F
S&[)
 T34f<=
 
	
$H# Hr    r   c                       e Zd Zdededef fdZdefdZdefdZe	j                  e	j                  fdeeef   d	eed
   ef   defdZe	j                  e	j                  fdeeef   d	eed
   ef   defdZdefdZ xZS )r9   r#   r%   r&   c                 z    t         |   |       ||d| _         dj                  di | j                  | _        y)a;  
        Initialize the FeedbackContext

        :param version: Version that contains the resource
        :param account_sid: The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource.
        :param call_sid: The call sid that uniquely identifies the call
        r-   z6/Accounts/{account_sid}/Calls/{call_sid}/Feedback.jsonNr   )r.   r/   r3   rR   _urir5   r#   r%   r&   r6   s       r!   r/   zFeedbackContext.__init__   sG     	! ' 
 TLSS 
nn
	r    r7   c                     | j                   j                  d| j                        }t        | j                   || j                  d   | j                  d         S )r>   GETmethodurir%   r&   r-   )r:   r?   ri   r   r3   r5   r$   s     r!   r?   zFeedbackContext.fetch   sX     --%%		 & 

  MM}5^^J/	
 	
r    c                    K   | j                   j                  d| j                         d{   }t        | j                   || j                  d   | j                  d         S 7 7w)rA   rl   rm   Nr%   r&   r-   )r:   rB   ri   r   r3   rp   s     r!   rB   zFeedbackContext.fetch_async   sf      11		 2 
 

  MM}5^^J/	
 	

s   +A'A%8A'r+   rC   r   c                    t        j                  |t        j                  |d       d      }| j                  j                  d| j                  |      }t        | j                  || j                  d   | j                  d         S )rE   c                     | S Nr   es    r!   <lambda>z(FeedbackContext.update.<locals>.<lambda>        r    QualityScoreIssuePOSTrn   ro   datar%   r&   r-   )	r   ofr
   mapr:   rG   ri   r   r3   r5   r+   rC   r~   r$   s        r!   rG   zFeedbackContext.update   s     yy -"uk:
 --&&		 ' 
  MM}5^^J/	
 	
r    c                 .  K   t        j                  |t        j                  |d       d      }| j                  j                  d| j                  |       d{   }t        | j                  || j                  d   | j                  d         S 7 7w)	rJ   c                     | S rt   r   ru   s    r!   rw   z.FeedbackContext.update_async.<locals>.<lambda>  rx   r    ry   r|   r}   Nr%   r&   r-   )	r   r   r
   r   r:   rK   ri   r   r3   r   s        r!   rK   zFeedbackContext.update_async   s      yy -"uk:
 22		 3 
 
  MM}5^^J/	
 	

s   ABB8Bc                     dj                  d | j                  j                         D              }dj                  |      S )rM   rN   c              3   F   K   | ]  \  }}d j                  ||        ywrP   rQ   rS   s      r!   rW   z+FeedbackContext.__repr__.<locals>.<genexpr>  rX   rY   z%<Twilio.Api.V2010.FeedbackContext {}>rZ   r]   s     r!   r_   zFeedbackContext.__repr__  s6     ((SDNN<P<P<RSS6==gFFr    )r   r   r   r   ra   r/   r   r?   rB   r   rc   r   rd   r`   r   rG   rK   r_   re   rf   s   @r!   r9   r9      s    
 
c 
S 
&
' 
(
#3 
, -3LL@F
S&[)
 T34f<=
 
	
F -3LL@F
S&[)
 T34f<=
 
	
BG# Gr    r9   c                   P     e Zd Zdededef fdZdefdZdefdZdefdZ	 xZ
S )	FeedbackListr#   r%   r&   c                 8    t         |   |       ||d| _        y)a9  
        Initialize the FeedbackList

        :param version: Version that contains the resource
        :param account_sid: The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource.
        :param call_sid: The call sid that uniquely identifies the call

        r-   N)r.   r/   r3   rj   s       r!   r/   zFeedbackList.__init__  s#     	! ' 
r    r7   c                 f    t        | j                  | j                  d   | j                  d         S z/
        Constructs a FeedbackContext

        r%   r&   r-   r9   r:   r3   r;   s    r!   r0   zFeedbackList.get/  0    
 MM}5^^J/
 	
r    c                 f    t        | j                  | j                  d   | j                  d         S r   r   r;   s    r!   __call__zFeedbackList.__call__:  r   r    c                      y)rM   z<Twilio.Api.V2010.FeedbackList>r   r;   s    r!   r_   zFeedbackList.__repr__E  s     1r    )r   r   r   r   ra   r/   r9   r0   r   r_   re   rf   s   @r!   r   r     sA    
 
c 
S 
"	
_ 	
	
/ 	
1# 1r    r   N)__doc__r   typingr   r   r   r   r   twilio.baser	   r
   r   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r   r9   r   r   r    r!   <module>r      sV     3 3 6 6 8 : 2 'yH' yHxEGo EGP.1< .1r    