
    d{i                         d Z ddlmZ ddlmZmZ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 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 G d de      Zy)a  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Conversations
    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IteratorAsyncIterator)deserialize	serializevalues)ApiResponse)InstanceContext)InstanceResource)ListResource)Version)Pagec            
           e Zd Z G d de      Z G d de      Z	 	 ddedeee	f   dede
e   f fd	Zedd       Zd
efdZd
efdZd
efdZd
efdZddZddZd
efdZd
efdZej2                  ej2                  ej2                  fdedef   deeef   deeef   d
d fdZej2                  ej2                  ej2                  fdedef   deeef   deeef   d
d fdZej2                  ej2                  ej2                  fdedef   deeef   deeef   d
efdZej2                  ej2                  ej2                  fdedef   deeef   deeef   d
efdZ d
efdZ! xZ"S ) UserConversationInstancec                       e Zd ZdZdZy)*UserConversationInstance.NotificationLeveldefaultmutedN)__name__
__module____qualname__DEFAULTMUTED     q/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/conversations/v1/user/user_conversation.pyNotificationLevelr      s    r    r"   c                       e Zd ZdZdZdZy)UserConversationInstance.StateinactiveactiveclosedN)r   r   r   INACTIVEACTIVECLOSEDr   r    r!   Stater$       s    r    r+   versionpayloaduser_sidconversation_sidc                    t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        t        j                  |j                  d            | _        t        j                  |j                  d            | _	        |j                  d      | _
        |j                  d      | _        |j                  d      | _        |j                  d	      | _        |j                  d
      | _        |j                  d      | _        t        j                   |j                  d            | _        t        j                   |j                  d            | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        ||xs | j
                  d| _        d | _        y )Naccount_sidchat_service_sidr/   unread_messages_countlast_read_message_indexparticipant_sidr.   friendly_nameconversation_statetimers
attributesdate_createddate_updated
created_bynotification_levelunique_nameurllinksr.   r/   )super__init__getr1   r2   r/   r   integerr3   r4   r5   r.   r6   r7   r8   r9   iso8601_datetimer:   r;   r<   r=   r>   r?   r@   	_solution_context)selfr,   r-   r.   r/   	__class__s        r!   rC   z!UserConversationInstance.__init__:   s    	!*1++m*D/6{{;M/N/6{{;M/N4?4G4GKK/05
" 7B6I6IKK127
$ /6kk:K.L'.{{:'>,3KK,HKK,- 	 4;;;x3H)0\)B0;0L0LKK'1
 1<0L0LKK'1
 *1\)B KK,- 	 +2++m*D")++e"429++g2F
 ! 0 ID4I4I
 <@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: UserConversationContext for this UserConversationInstance
        r.   r/   rA   )rH   UserConversationContext_versionrG   rI   s    r!   _proxyzUserConversationInstance._proxyh   sF     == 3
3!%0B!CDM
 }}r    c                 6    | j                   j                         S zs
        Deletes the UserConversationInstance


        :returns: True if delete succeeds, False otherwise
        )rP   deleterO   s    r!   rS   zUserConversationInstance.deletex   s     {{!!##r    c                 R   K   | j                   j                          d{   S 7 wz
        Asynchronous coroutine that deletes the UserConversationInstance


        :returns: True if delete succeeds, False otherwise
        N)rP   delete_asyncrO   s    r!   rV   z%UserConversationInstance.delete_async   s!      [[--////   '%'c                 6    | j                   j                         S )z
        Deletes the UserConversationInstance with HTTP info


        :returns: ApiResponse with success boolean, status code, and headers
        )rP   delete_with_http_inforO   s    r!   rY   z.UserConversationInstance.delete_with_http_info   s     {{0022r    c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine that deletes the UserConversationInstance with HTTP info


        :returns: ApiResponse with success boolean, status code, and headers
        N)rP   delete_with_http_info_asyncrO   s    r!   r[   z4UserConversationInstance.delete_with_http_info_async   s!      [[<<>>>>rW   c                 6    | j                   j                         S )m
        Fetch the UserConversationInstance


        :returns: The fetched UserConversationInstance
        )rP   fetchrO   s    r!   r^   zUserConversationInstance.fetch   s     {{  ""r    c                 R   K   | j                   j                          d{   S 7 w)
        Asynchronous coroutine to fetch the UserConversationInstance


        :returns: The fetched UserConversationInstance
        N)rP   fetch_asyncrO   s    r!   ra   z$UserConversationInstance.fetch_async   s!      [[,,....rW   c                 6    | j                   j                         S )z
        Fetch the UserConversationInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        )rP   fetch_with_http_inforO   s    r!   rc   z-UserConversationInstance.fetch_with_http_info   s     {{//11r    c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine to fetch the UserConversationInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        N)rP   fetch_with_http_info_asyncrO   s    r!   re   z3UserConversationInstance.fetch_with_http_info_async   s!      [[;;====rW   r=   r   last_read_timestampr4   c                 >    | j                   j                  |||      S )  
        Update the UserConversationInstance

        :param notification_level:
        :param last_read_timestamp: The date of the last message read in conversation by the user, given in ISO 8601 format.
        :param last_read_message_index: The index of the last Message in the Conversation that the Participant has read.

        :returns: The updated UserConversationInstance
        r=   rf   r4   )rP   updaterI   r=   rf   r4   s       r!   rj   zUserConversationInstance.update   s)    " {{!!1 3$; " 
 	
r    c                 Z   K   | j                   j                  |||       d{   S 7 w)  
        Asynchronous coroutine to update the UserConversationInstance

        :param notification_level:
        :param last_read_timestamp: The date of the last message read in conversation by the user, given in ISO 8601 format.
        :param last_read_message_index: The index of the last Message in the Conversation that the Participant has read.

        :returns: The updated UserConversationInstance
        ri   N)rP   update_asyncrk   s       r!   rn   z%UserConversationInstance.update_async   s7     " [[--1 3$; . 
 
 	
 
   "+)+c                 >    | j                   j                  |||      S )a  
        Update the UserConversationInstance with HTTP info

        :param notification_level:
        :param last_read_timestamp: The date of the last message read in conversation by the user, given in ISO 8601 format.
        :param last_read_message_index: The index of the last Message in the Conversation that the Participant has read.

        :returns: ApiResponse with instance, status code, and headers
        ri   )rP   update_with_http_infork   s       r!   rq   z.UserConversationInstance.update_with_http_info   s)    " {{001 3$; 1 
 	
r    c                 Z   K   | j                   j                  |||       d{   S 7 w)a  
        Asynchronous coroutine to update the UserConversationInstance with HTTP info

        :param notification_level:
        :param last_read_timestamp: The date of the last message read in conversation by the user, given in ISO 8601 format.
        :param last_read_message_index: The index of the last Message in the Conversation that the Participant has read.

        :returns: ApiResponse with instance, status code, and headers
        ri   N)rP   update_with_http_info_asyncrk   s       r!   rs   z4UserConversationInstance.update_with_http_info_async  s7     " [[<<1 3$; = 
 
 	
 
ro   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>z4UserConversationInstance.__repr__.<locals>.<genexpr>"       SDAq7>>!Q/S   !z5<Twilio.Conversations.V1.UserConversationInstance {}>joinrG   itemsrz   rI   contexts     r!   __repr__z!UserConversationInstance.__repr__  s6     ((SDNN<P<P<RSSFMMgVVr    )N)rK   rM   )rK   r   )#r   r   r   objectr"   r+   r   r   strr   r   rC   propertyrP   boolrS   rV   r   rY   r[   r^   ra   rc   re   r   unsetr   r   intrj   rn   rq   rs   r   __classcell__rJ   s   @r!   r   r      s^   F  
4 +/,@,@ c3h,@ 	,@
 #3-,@\  $ $0D 03{ 3?; ?#/2k 2>+ > LL7=||6<ll
!8&@


 #8V#34
 "'sF{!3
 
$
6 LL7=||6<ll
!8&@


 #8V#34
 "'sF{!3
 
$
6 LL7=||6<ll
!8&@


 #8V#34
 "'sF{!3
 

6 LL7=||6<ll
!8&@


 #8V#34
 "'sF{!3
 

.W# W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	de
fdZdefd	Zdefd
Zde
fdZdefdZdefdZde
fdZdefdZdefdZde
fdZej.                  ej.                  ej.                  fdedef   deeef   deeef   defdZej.                  ej.                  ej.                  fdedef   deeef   deeef   defdZej.                  ej.                  ej.                  fdedef   deeef   deeef   de
fdZej.                  ej.                  ej.                  fdedef   deeef   deeef   defdZej.                  ej.                  ej.                  fdedef   deeef   deeef   defdZ ej.                  ej.                  ej.                  fdedef   deeef   deeef   de
fdZ!defdZ" xZ#S )rM   r,   r.   r/   c                 z    t         |   |       ||d| _         dj                  di | j                  | _        y)a4  
        Initialize the UserConversationContext

        :param version: Version that contains the resource
        :param user_sid: The unique SID identifier of the [User resource](https://www.twilio.com/docs/conversations/api/user-resource). This value can be either the `sid` or the `identity` of the User resource.
        :param conversation_sid: The unique SID identifier of the Conversation. This value can be either the `sid` or the `unique_name` of the [Conversation resource](https://www.twilio.com/docs/conversations/api/conversation-resource).
        rA   z2/Users/{user_sid}/Conversations/{conversation_sid}Nr   rB   rC   rG   rz   _uri)rI   r,   r.   r/   rJ   s       r!   rC   z UserConversationContext.__init__(  sG     	! ! 0
 PHOO 
nn
	r    rK   c                 |    t        j                  i       }| j                  j                  d| j                  |      S )z
        Internal helper for delete operation

        Returns:
            tuple: (success_boolean, status_code, headers)
        DELETEmethoduriheaders)r   ofrN   delete_with_response_infor   rI   r   s     r!   _deletezUserConversationContext._delete;  s8     ))B-}}66G 7 
 	
r    c                 .    | j                         \  }}}|S rR   )r   rI   success_s      r!   rS   zUserConversationContext.deleteI  s     Ar    c                 F    | j                         \  }}}t        |||      S )z
        Deletes the UserConversationInstance and return response metadata


        :returns: ApiResponse with success boolean, status code, and headers
        datastatus_coder   )r   r   rI   r   r   r   s       r!   rY   z-UserConversationContext.delete_with_http_infoS  s%     )-%g['RRr    c                    K   t        j                  i       }| j                  j                  d| j                  |       d{   S 7 w)z
        Internal async helper for delete operation

        Returns:
            tuple: (success_boolean, status_code, headers)
        r   r   N)r   r   rN   delete_with_response_info_asyncr   r   s     r!   _delete_asyncz%UserConversationContext._delete_async]  sG      ))B-]]BBG C 
 
 	
 
s   AA
AA
c                 J   K   | j                          d{   \  }}}|S 7 
wrU   )r   r   s      r!   rV   z$UserConversationContext.delete_asynck  s)      #0022A 3s   #!#c                 b   K   | j                          d{   \  }}}t        |||      S 7 w)z
        Asynchronous coroutine that deletes the UserConversationInstance and return response metadata


        :returns: ApiResponse with success boolean, status code, and headers
        Nr   )r   r   r   s       r!   r[   z3UserConversationContext.delete_with_http_info_asyncu  s5      /3.@.@.B(B%g['RR )Cs   /-/c                     t        j                  i       }d|d<   | j                  j                  d| j                  |      S )zz
        Internal helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        application/jsonAcceptGETr   )r   r   rN   fetch_with_response_infor   r   s     r!   _fetchzUserConversationContext._fetch  sB     ))B-.}}55dii 6 
 	
r    c                     | j                         \  }}}t        | j                  || j                  d   | j                  d         S )r]   r.   r/   rA   )r   r   rN   rG   rI   r-   r   s      r!   r^   zUserConversationContext.fetch  sE     A'MM^^J/!^^,>?	
 	
r    c                     | j                         \  }}}t        | j                  || j                  d   | j                  d         }t	        |||      S )z
        Fetch the UserConversationInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        r.   r/   rA   r   )r   r   rN   rG   r   rI   r-   r   r   instances        r!   rc   z,UserConversationContext.fetch_with_http_info  sT     )-%g+MM^^J/!^^,>?	
 k7SSr    c                    K   t        j                  i       }d|d<   | j                  j                  d| j                  |       d{   S 7 w)z
        Internal async helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        r   r   r   r   N)r   r   rN   fetch_with_response_info_asyncr   r   s     r!   _fetch_asyncz$UserConversationContext._fetch_async  sQ      ))B-.]]AAdii B 
 
 	
 
s   AAA	Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d   | j                  d         S 7 ;w)r`   Nr.   r/   rA   )r   r   rN   rG   r   s      r!   ra   z#UserConversationContext.fetch_async  sT      #//11A'MM^^J/!^^,>?	
 	
 2s   AA<Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d   | j                  d         }t	        |||      S 7 Iw)z
        Asynchronous coroutine to fetch the UserConversationInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        Nr.   r/   rA   r   )r   r   rN   rG   r   r   s        r!   re   z2UserConversationContext.fetch_with_http_info_async  sd      /3.?.?.A(A%g+MM^^J/!^^,>?	
 k7SS )Bs   A"A A
A"r=   r   rf   r4   c                     t        j                  |t        j                  |      |d      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||      S )z{
        Internal helper for update operation

        Returns:
            tuple: (payload, status_code, headers)
        r"   LastReadTimestampLastReadMessageIndex!application/x-www-form-urlencodedContent-Typer   r   POSTr   r   r   r   )r   r   r   rF   rN   update_with_response_infor   rI   r=   rf   r4   r   r   s         r!   _updatezUserConversationContext._update  sx     yy%7%.%?%?@S%T(?
 ))B-"E.}}66tyytW 7 
 	
r    c                     | j                  |||      \  }}}t        | j                  || j                  d   | j                  d         S )rh   ri   r.   r/   rA   )r   r   rN   rG   rI   r=   rf   r4   r-   r   s         r!   rj   zUserConversationContext.update  sX    " 1 3$; % 
A
 (MM^^J/!^^,>?	
 	
r    c                     | j                  |||      \  }}}t        | j                  || j                  d   | j                  d         }t	        |||      S )a  
        Update the UserConversationInstance and return response metadata

        :param notification_level:
        :param last_read_timestamp: The date of the last message read in conversation by the user, given in ISO 8601 format.
        :param last_read_message_index: The index of the last Message in the Conversation that the Participant has read.

        :returns: ApiResponse with instance, status code, and headers
        ri   r.   r/   rA   r   )r   r   rN   rG   r   rI   r=   rf   r4   r-   r   r   r   s           r!   rq   z-UserConversationContext.update_with_http_info  sg    " )-1 3$; )5 )
%g
 ,MM^^J/!^^,>?	
 k7SSr    c                   K   t        j                  |t        j                  |      |d      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||       d{   S 7 w)	z
        Internal async helper for update operation

        Returns:
            tuple: (payload, status_code, headers)
        r   r   r   r   r   r   r   N)r   r   r   rF   rN   update_with_response_info_asyncr   r   s         r!   _update_asyncz%UserConversationContext._update_async8  s      yy%7%.%?%?@S%T(?
 ))B-"E.]]BBtyytW C 
 
 	
 
s   A8B:A?;Bc                    K   | j                  |||       d{   \  }}}t        | j                  || j                  d   | j                  d         S 7 ;w)rm   ri   Nr.   r/   rA   )r   r   rN   rG   r   s         r!   rn   z$UserConversationContext.update_asyncX  sh     " #001 3$; 1 
 
A
 (MM^^J/!^^,>?	
 	

s   AA<Ac                    K   | j                  |||       d{   \  }}}t        | j                  || j                  d   | j                  d         }t	        |||      S 7 Iw)a  
        Asynchronous coroutine to update the UserConversationInstance and return response metadata

        :param notification_level:
        :param last_read_timestamp: The date of the last message read in conversation by the user, given in ISO 8601 format.
        :param last_read_message_index: The index of the last Message in the Conversation that the Participant has read.

        :returns: ApiResponse with instance, status code, and headers
        ri   Nr.   r/   rA   r   )r   r   rN   rG   r   r   s           r!   rs   z3UserConversationContext.update_with_http_info_asyncu  sx     " /3.@.@1 3$; /A /
 )
%g
 ,MM^^J/!^^,>?	
 k7SS)
s   A&A$A
A&c                     dj                  d | j                  j                         D              }dj                  |      S )ru   rv   c              3   F   K   | ]  \  }}d j                  ||        ywrx   ry   r{   s      r!   r   z3UserConversationContext.__repr__.<locals>.<genexpr>  r   r   z4<Twilio.Conversations.V1.UserConversationContext {}>r   r   s     r!   r   z UserConversationContext.__repr__  s6     ((SDNN<P<P<RSSELLWUUr    )$r   r   r   r   r   rC   tupler   r   rS   r   rY   r   rV   r[   r   r   r^   rc   r   ra   re   r   r   r   r   r   r   r   rj   rq   r   rn   rs   r   r   r   s   @r!   rM   rM   &  s    
 
3 
# 
&
 
 S{ S
U 
D S; S
 
 
/ 
Tk T 
E 
 
#; 
T+ T( LL7=||6<ll
!8&@


 #8V#34
 "'sF{!3
 

H LL7=||6<ll
!8&@


 #8V#34
 "'sF{!3
 
"
B LL7=||6<llT!8&@
T
 #8V#34T "'sF{!3T 
TD LL7=||6<ll
!8&@


 #8V#34
 "'sF{!3
 

H LL7=||6<ll
!8&@


 #8V#34
 "'sF{!3
 
"
B LL7=||6<llT!8&@
T
 #8V#34T "'sF{!3T 
T<V# Vr    rM   c                   2    e Zd Zdeeef   defdZdefdZy)UserConversationPager-   rK   c                 L    t        | j                  || j                  d         S )zv
        Build an instance of UserConversationInstance

        :param payload: Payload response from the API
        r.   )r.   )r   rN   rG   )rI   r-   s     r!   get_instancez!UserConversationPage.get_instance  s%     (MM7T^^J-G
 	
r    c                      y)ru   z.<Twilio.Conversations.V1.UserConversationPage>r   rO   s    r!   r   zUserConversationPage.__repr__       @r    N)	r   r   r   r   r   r   r   r   r   r   r    r!   r   r     s,    
DcN 
7O 
@# @r    r   c            	           e Zd Zdedef fdZ	 	 ddee   dee   dee	   fdZ
	 	 ddee   dee   dee	   fdZ	 	 ddee   dee   defd	Z	 	 ddee   dee   defd
Z	 	 ddee   dee   dee	   fdZ	 	 ddee   dee   dee	   fdZ	 	 ddee   dee   defdZ	 	 ddee   dee   defdZej.                  ej.                  ej.                  fdeeef   deeef   deeef   defdZej.                  ej.                  ej.                  fdeeef   deeef   deeef   defdZej.                  ej.                  ej.                  fdeeef   deeef   deeef   defdZej.                  ej.                  ej.                  fdeeef   deeef   deeef   defdZdedefdZdedefdZ dede!fdZ"dede!fdZ#defdZ$ xZ%S )UserConversationListr,   r.   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)aE  
        Initialize the UserConversationList

        :param version: Version that contains the resource
        :param user_sid: The unique SID identifier of the [User resource](https://www.twilio.com/docs/conversations/api/user-resource). This value can be either the `sid` or the `identity` of the User resource.

        r.   z/Users/{user_sid}/ConversationsNr   r   )rI   r,   r.   rJ   s      r!   rC   zUserConversationList.__init__  s@     	! 
 =5<<Nt~~N	r    limit	page_sizerK   c                     | j                   j                  ||      }| j                  |d         }| j                   j                  ||d         S )af  
        Streams UserConversationInstance records from the API as a generator stream.
        This operation lazily loads records as efficiently as possible until the limit
        is reached.
        The results are returned as a generator, so this operation is memory efficient.

        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: Generator that will yield up to limit results
        r   r   r   )rN   read_limitspagestreamrI   r   r   limitsr   s        r!   r   zUserConversationList.stream  sJ    ( **5)<yy6+#6y7}}##D&/::r    c                    K   | j                   j                  ||      }| j                  |d          d{   }| j                   j                  ||d         S 7 #w)au  
        Asynchronously streams UserConversationInstance records from the API as a generator stream.
        This operation lazily loads records as efficiently as possible until the limit
        is reached.
        The results are returned as a generator, so this operation is memory efficient.

        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: Generator that will yield up to limit results
        r   r   Nr   )rN   r   
page_asyncstream_asyncr   s        r!   r   z!UserConversationList.stream_async  sW     ( **5)<__vk/B_CC}}))$w@@ Ds   5AA$Ac                     | j                   j                  ||      }| j                  |d         }| j                   j                  |j                  |d         }||j
                  |j                  fS )a  
        Streams UserConversationInstance and returns headers from first page


        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: tuple of (generator, status_code, headers) where generator yields instances
        r   r   r   )rN   r   page_with_http_infor   r   r   r   rI   r   r   r   page_response	generators         r!   stream_with_http_infoz*UserConversationList.stream_with_http_info  sk    $ **5)<006+;N0OMM((););VG_M	=44m6K6KLLr    c                   K   | j                   j                  ||      }| j                  |d          d{   }| j                   j                  |j                  |d         }||j
                  |j                  fS 7 Fw)a  
        Asynchronously streams UserConversationInstance and returns headers from first page


        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: tuple of (generator, status_code, headers) where generator yields instances
        r   r   Nr   )rN   r   page_with_http_info_asyncr   r   r   r   r   s         r!   stream_with_http_info_asyncz0UserConversationList.stream_with_http_info_async  s     $ **5)<"<<[) = 
 
 MM..}/A/A6'?S	=44m6K6KLL
s   5B A>AB c                 :    t        | j                  ||            S )a  
        Lists UserConversationInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: list that will contain up to limit results
        r   r   )listr   )rI   r   r   s      r!   r   zUserConversationList.list(  s(    & KK#  
 	
r    c                 z   K   | j                  ||       d{   2 cg c3 d{   }|7 7 	6 c}S c c}w w)a  
        Asynchronously lists UserConversationInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: list that will contain up to limit results
        r   N)r   )rI   r   r   records       r!   
list_asynczUserConversationList.list_asyncB  sT     * '+&7&7# '8 ' !
 
 !
 
 	
 
s0   ;.;620
26;26;c                 b    | j                  ||      \  }}}t        |      }t        |||      S )a  
        Lists UserConversationInstance and returns headers from first page


        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: ApiResponse with list of instances, status code, and headers
        r   r   )r   r   r   )rI   r   r   r   r   r   r   s          r!   list_with_http_infoz(UserConversationList.list_with_http_info]  sA    $ +/*D*D +E +
'	; Y;PPr    c                    K   | j                  ||       d{   \  }}}|2 cg c3 d{   }|7 7 	6 nc c}w }}t        |||      S w)a  
        Asynchronously lists UserConversationInstance and returns headers from first page


        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: ApiResponse with list of instances, status code, and headers
        r   Nr   )r   r   )rI   r   r   r   r   r   r   r   s           r!   list_with_http_info_asyncz.UserConversationList.list_with_http_info_asyncv  sf     $ 150P0P 1Q 1
 +
'	; -666&	+
 7666;PPs4   A4A:86
8:A8:A
page_tokenpage_numberc                     t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      }t        | j                  || j                        S )a  
        Retrieve a single page of UserConversationInstance records from the API.
        Request is executed immediately

        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: Page of UserConversationInstance
        	PageTokenr   PageSizer   r   r   r   r   r   r   paramsr   )r   r   rN   r   r   r   rG   rI   r   r   r   r   r   responses          r!   r   zUserConversationList.page  s      yy'#%
 ))^-PQR.==%%diig & 
 $DMM8T^^LLr    c                   K   t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   }t        | j                  || j                        S 7 %w)	a  
        Asynchronously retrieve a single page of UserConversationInstance records from the API.
        Request is executed immediately

        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: Page of UserConversationInstance
        r   r   r   r   r   r   r  N)r   r   rN   r   r   r   rG   r  s          r!   r   zUserConversationList.page_async  s       yy'#%
 ))^-PQR.11diig 2 
 
 $DMM8T^^LL
s   A"B$B
%&Bc                 $   t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      \  }}}t        | j                  || j                        }	t        |	||      S )	ab  
        Retrieve a single page with response metadata


        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: ApiResponse with UserConversationPage, status code, and headers
        r   r   r   r   r   r   r  r   )r   r   rN   page_with_response_infor   r   rG   r   
rI   r   r   r   r   r   r  r   response_headersr   s
             r!   r   z(UserConversationList.page_with_http_info  s      yy'#%
 ))^-PQR.26--2W2Wdiig 3X 3
/+/ $DMM8T^^L+GWXXr    c                 @  K   t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   \  }}}t        | j                  || j                        }	t        |	||	      S 7 7w)
aq  
        Asynchronously retrieve a single page with response metadata


        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: ApiResponse with UserConversationPage, status code, and headers
        r   r   r   r   r   r   r  Nr   )r   r   rN   page_with_response_info_asyncr   r   rG   r   r  s
             r!   r   z.UserConversationList.page_with_http_info_async  s       yy'#%
 ))^-PQR. --==$))D' >   	0+/
 $DMM8T^^L+GWXXs   A"B$B%8B
target_urlc                     | j                   j                  j                  j                  d|      }t	        | j                   || j
                        S )a  
        Retrieve a specific page of UserConversationInstance records from the API.
        Request is executed immediately

        :param target_url: API-generated URL for the requested results page

        :returns: Page of UserConversationInstance
        r   )rN   domaintwiliorequestr   rG   rI   r  r  s      r!   get_pagezUserConversationList.get_page  s=     ==''..66ujI#DMM8T^^LLr    c                    K   | j                   j                  j                  j                  d|       d{   }t	        | j                   || j
                        S 7 %w)a  
        Asynchronously retrieve a specific page of UserConversationInstance records from the API.
        Request is executed immediately

        :param target_url: API-generated URL for the requested results page

        :returns: Page of UserConversationInstance
        r   N)rN   r  r  request_asyncr   rG   r  s      r!   get_page_asyncz#UserConversationList.get_page_async#  sJ      --44BB5*UU#DMM8T^^LL Vs   4AA&Ar/   c                 L    t        | j                  | j                  d   |      S a$  
        Constructs a UserConversationContext

        :param conversation_sid: The unique SID identifier of the Conversation. This value can be either the `sid` or the `unique_name` of the [Conversation resource](https://www.twilio.com/docs/conversations/api/conversation-resource).
        r.   rA   rM   rN   rG   rI   r/   s     r!   rD   zUserConversationList.get/  '     'MM^^J/-
 	
r    c                 L    t        | j                  | j                  d   |      S r  r  r  s     r!   __call__zUserConversationList.__call__;  r  r    c                      y)ru   z.<Twilio.Conversations.V1.UserConversationList>r   rO   s    r!   r   zUserConversationList.__repr__G  r   r    )NN)&r   r   r   r   r   rC   r   r   r	   r   r   r
   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  rM   rD   r  r   r   r   s   @r!   r   r     s   O O3 O$  $#';}; C=; 
*	+	;6  $#'A}A C=A 
/	0	A6  $#'M}M C=M 
	M4  $#'M}M C=M 
	M8  $#'
}
 C=
 
&	'	
8  $#'
}
 C=
 
&	'	
:  $#'Q}Q C=Q 
	Q6  $#'Q}Q C=Q 
	Q6 *0*0,,(.	M#v+&M 3;'M f%	M
 
MF *0*0,,(.	M#v+&M 3;'M f%	M
 
MF *0*0,,(.	 Y#v+& Y 3;' Y f%	 Y
 
 YH *0*0,,(.	"Y#v+&"Y 3;'"Y f%	"Y
 
"YH
M3 
M+? 
M
Ms 
M7K 
M

C 

,C 



 

1H 

@# @r    r   N)__doc__r   typingr   r   r   r   r   r	   r
   twilio.baser   r   r   twilio.base.api_responser   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   rM   r   r   r   r    r!   <module>r'     sq     L L L 6 6 0 8 : 2 ' !IW/ IWXtVo tVn@4 @*[@< [@r    