Ë
    [üàg’M  ã                   óº   — 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 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 - 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Úvalues)ÚInstanceResource)ÚListResource)ÚVersion)ÚPagec                   óZ   ‡ — e Zd Z G d„ de«      Z	 dedeeef   defˆ fd„Z	defd„Z
ˆ xZS )	ÚParticipantConversationInstancec                   ó   — e Zd ZdZdZdZy)ú%ParticipantConversationInstance.StateÚinactiveÚactiveÚclosedN)Ú__name__Ú
__module__Ú__qualname__ÚINACTIVEÚACTIVEÚCLOSED© ó    ú{/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/conversations/v1/service/participant_conversation.pyÚStater      s   „ ØˆØˆØ‰r   r!   ÚversionÚpayloadÚchat_service_sidc                 óB  •— t         ‰| �  |«       |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |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«      | _        d|i| _        y )NÚaccount_sidr$   Úparticipant_sidÚparticipant_user_sidÚparticipant_identityÚparticipant_messaging_bindingÚconversation_sidÚconversation_unique_nameÚconversation_friendly_nameÚconversation_attributesÚconversation_date_createdÚconversation_date_updatedÚconversation_created_byÚconversation_stateÚconversation_timersÚlinks)ÚsuperÚ__init__Úgetr&   r$   r'   r(   r)   r*   r+   r,   r-   r.   r   Úiso8601_datetimer/   r0   r1   r2   r3   r4   Ú	_solution)Úselfr"   r#   r$   Ú	__class__s       €r    r6   z(ParticipantConversationInstance.__init__3   s‚  ø€ ô 	‰Ñ˜Ô!à*1¯+©+°mÓ*DˆÔØ/6¯{©{Ð;MÓ/NˆÔØ.5¯k©kÐ:KÓ.LˆÔØ3:·;±;Ð?UÓ3VˆÔ!Ø3:·;±;Ð?UÓ3VˆÔ!ØJQÏ+É+Ø+óK
ˆÔ*ð 07¯{©{Ð;MÓ/NˆÔØ7>·{±{Ø&ó8
ˆÔ%ð :A¿¹Ø(ó:
ˆÔ'ð 7>·k±kØ%ó7
ˆÔ$ô ×(Ñ(¨¯©Ð5PÓ)QÓRð 	Ô&ô ×(Ñ(¨¯©Ð5PÓ)QÓRð 	Ô&ð 7>·k±kØ%ó7
ˆÔ$ð �K‰KÐ,Ó-ð 	Ôð AHÇÁØ!óA
ˆÔ ð 3:·+±+¸gÓ2FˆŒ
ð Ð 0ð
ˆ�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;ParticipantConversationInstance.__repr__.<locals>.<genexpr>e   s   è ø€ ÒS±D°A°q˜7Ÿ>™>¨!¨Q×/ÑSùs   ‚!z<<Twilio.Conversations.V1.ParticipantConversationInstance {}>)Újoinr9   ÚitemsrA   )r:   Úcontexts     r    Ú__repr__z(ParticipantConversationInstance.__repr___   s;   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØM×TÑTØó
ð 	
r   )r   r   r   Úobjectr!   r   r   Ústrr   r6   rI   Ú__classcell__©r;   s   @r    r   r      sF   ø„ ô�ô ð
ð&*
Øð*
Ø)-¨c°3¨h©ð*
ØKNõ*
ðX	
˜#÷ 	
r   r   c                   ó2   — e Zd Zdeeef   defd„Zdefd„Zy)ÚParticipantConversationPager#   r<   c                 óL   — t        | j                  || j                  d   ¬«      S )z}
        Build an instance of ParticipantConversationInstance

        :param payload: Payload response from the API
        r$   )r$   )r   Ú_versionr9   )r:   r#   s     r    Úget_instancez(ParticipantConversationPage.get_instancem   s&   € ô /Ø�M‰M˜7°T·^±^ÐDVÑ5Wô
ð 	
r   c                  ó   — y)r>   z5<Twilio.Conversations.V1.ParticipantConversationPage>r   ©r:   s    r    rI   z$ParticipantConversationPage.__repr__w   ó   € ð Gr   N)	r   r   r   r   rK   r   r   rR   rI   r   r   r    rO   rO   k   s,   „ ð
 D¨¨c¨¡Nð 
Ð7Vó 
ðG˜#ô Gr   rO   c                   ó¨  ‡ — e Zd Zdedefˆ fd„Zej                  ej                  ddfdeee	f   deee	f   de
e   de
e   d	ee   f
d
„Zej                  ej                  ddfdeee	f   deee	f   de
e   de
e   d	ee   f
d„Zej                  ej                  ddfdeee	f   deee	f   de
e   de
e   d	ee   f
d„Zej                  ej                  ddfdeee	f   deee	f   de
e   de
e   d	ee   f
d„Zej                  ej                  ej                  ej                  ej                  fdeee	f   deee	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                  ej                  ej                  fdeee	f   deee	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fd„Zˆ xZS )ÚParticipantConversationListr"   r$   c                 óx   •— t         ‰| �  |«       d|i| _         dj                  di | j                  ¤Ž| _        y)a;  
        Initialize the ParticipantConversationList

        :param version: Version that contains the resource
        :param chat_service_sid: The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant Conversations resource is associated with.

        r$   z5/Services/{chat_service_sid}/ParticipantConversationsNr   )r5   r6   r9   rA   Ú_uri)r:   r"   r$   r;   s      €r    r6   z$ParticipantConversationList.__init__‚   sG   ø€ ô 	‰Ñ˜Ô!ð Ð 0ð
ˆŒð SÐK×RÑRñ 
Ø�n‰nñ
ˆ�	r   NÚidentityÚaddressÚlimitÚ	page_sizer<   c                 ó¦   — | j                   j                  ||«      }| j                  |||d   ¬«      }| j                   j                  ||d   «      S )aŒ  
        Streams ParticipantConversationInstance 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 str identity: A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters.
        :param str address: A unique string identifier for the conversation participant who's not a Conversation User. This parameter could be found in messaging_binding.address field of Participant resource. It should be url-encoded.
        :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]   ©rZ   r[   r]   r\   )rQ   Úread_limitsÚpageÚstream©r:   rZ   r[   r\   r]   Úlimitsra   s          r    rb   z"ParticipantConversationList.stream”   sV   € ð0 —‘×*Ñ*¨5°)Ó<ˆØ�y‰yØ w¸&ÀÑ:Mð ó 
ˆð �}‰}×#Ñ# D¨&°©/Ó:Ð:r   c              ƒ   óÂ   K  — | j                   j                  ||«      }| j                  |||d   ¬«      ƒ d{  –—† }| j                   j                  ||d   «      S 7 Œ#­w)a›  
        Asynchronously streams ParticipantConversationInstance 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 str identity: A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters.
        :param str address: A unique string identifier for the conversation participant who's not a Conversation User. This parameter could be found in messaging_binding.address field of Participant resource. It should be url-encoded.
        :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\   )rQ   r`   Ú
page_asyncÚstream_asyncrc   s          r    rg   z(ParticipantConversationList.stream_async³   sd   è ø€ ð0 —‘×*Ñ*¨5°)Ó<ˆØ—_‘_Ø w¸&ÀÑ:Mð %ó 
÷ 
ˆð �}‰}×)Ñ)¨$°°w±Ó@Ð@ð	
ús   ‚7A¹Aº$Ac                 ó>   — t        | j                  ||||¬«      «      S )a)  
        Lists ParticipantConversationInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param str identity: A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters.
        :param str address: A unique string identifier for the conversation participant who's not a Conversation User. This parameter could be found in messaging_binding.address field of Participant resource. It should be url-encoded.
        :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
        ©rZ   r[   r\   r]   )Úlistrb   )r:   rZ   r[   r\   r]   s        r    rj   z ParticipantConversationList.listÒ   s.   € ô. Ø�K‰KØ!ØØØ#ð	 ó ó
ð 	
r   c              ƒ   ó~   K  — | j                  ||||¬«      ƒ d{  –—† 2 �cg c3 d{  –—† }|‘Œ7 Œ7 Œ	6 c}S c c}w ­w)a8  
        Asynchronously lists ParticipantConversationInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param str identity: A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters.
        :param str address: A unique string identifier for the conversation participant who's not a Conversation User. This parameter could be found in messaging_binding.address field of Participant resource. It should be url-encoded.
        :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
        ri   N)rg   )r:   rZ   r[   r\   r]   Úrecords         r    Ú
list_asyncz&ParticipantConversationList.list_asyncò   sZ   è ø€ ð2 '+×&7Ñ&7Ø!ØØØ#ð	 '8ó '÷ !÷
ô 
àò ð!øð
øò 
ð 	
ùò 
ùs0   ‚=›0œ=¢8¤4¨2
©4¬8°=²4´8µ=Ú
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 ParticipantConversationInstance records from the API.
        Request is executed immediately

        :param identity: A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters.
        :param address: A unique string identifier for the conversation participant who's not a Conversation User. This parameter could be found in messaging_binding.address field of Participant resource. It should be url-encoded.
        :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 ParticipantConversationInstance
        ©ÚIdentityÚAddressÚ	PageTokenr   ÚPageSizeúContent-Typeú!application/x-www-form-urlencodedúapplication/jsonÚAcceptÚGET©ÚmethodÚuriÚparamsÚheaders)r   ÚofrQ   ra   rY   rO   r9   ©	r:   rZ   r[   rn   ro   r]   Údatar   Úresponses	            r    ra   z ParticipantConversationList.page  s…   € ô( �y‰yà$Ø"Ø'Ø#Ø%ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�Ñà—=‘=×%Ñ%Ø˜dŸi™i°¸gð &ó 
ˆô +¨4¯=©=¸(ÀDÇNÁNÓSÐSr   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 ParticipantConversationInstance records from the API.
        Request is executed immediately

        :param identity: A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters.
        :param address: A unique string identifier for the conversation participant who's not a Conversation User. This parameter could be found in messaging_binding.address field of Participant resource. It should be url-encoded.
        :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 ParticipantConversationInstance
        rq   rv   rw   rx   ry   rz   r{   N)r   r€   rQ   rf   rY   rO   r9   r�   s	            r    rf   z&ParticipantConversationList.page_async:  s“   è ø€ ô( �y‰yà$Ø"Ø'Ø#Ø%ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°¸gð 2ó 
÷ 
ˆô +¨4¯=©=¸(ÀDÇNÁNÓSÐSð
ús   ‚A$BÁ&BÁ'&BÚ
target_urlc                 ó¤   — | j                   j                  j                  j                  d|«      }t	        | j                   || j
                  «      S )a  
        Retrieve a specific page of ParticipantConversationInstance records from the API.
        Request is executed immediately

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

        :returns: Page of ParticipantConversationInstance
        rz   )rQ   ÚdomainÚtwilioÚrequestrO   r9   ©r:   r…   rƒ   s      r    Úget_pagez$ParticipantConversationList.get_pagea  s=   € ð —=‘=×'Ñ'×.Ñ.×6Ñ6°u¸jÓIˆÜ*¨4¯=©=¸(ÀDÇNÁNÓSÐSr   c              ƒ   óÀ   K  — | j                   j                  j                  j                  d|«      ƒ d{  –—† }t	        | j                   || j
                  «      S 7 Œ%­w)a"  
        Asynchronously retrieve a specific page of ParticipantConversationInstance records from the API.
        Request is executed immediately

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

        :returns: Page of ParticipantConversationInstance
        rz   N)rQ   r‡   rˆ   Úrequest_asyncrO   r9   rŠ   s      r    Úget_page_asyncz*ParticipantConversationList.get_page_asyncm  sJ   è ø€ ð Ÿ™×-Ñ-×4Ñ4×BÑBÀ5È*ÓU×UˆÜ*¨4¯=©=¸(ÀDÇNÁNÓSÐSð Vús   ‚4A¶A·&Ac                  ó   — y)r>   z5<Twilio.Conversations.V1.ParticipantConversationList>r   rT   s    r    rI   z$ParticipantConversationList.__repr__y  rU   r   )r   r   r   r   rK   r6   r   Úunsetr   rJ   r   Úintr	   r   rb   r
   rg   r   rj   rm   rO   ra   rf   r‹   rŽ   rI   rL   rM   s   @r    rW   rW   €   s:  ø„ ð
 ð 
¸3õ 
ð( (.§|¡|Ø&,§l¡lØ#Ø#'ñ;à˜˜V˜Ñ$ð;ð �s˜F�{Ñ#ð;ð ˜‰}ð	;ð
 ˜C‘=ð;ð 
Ð1Ñ	2ó;ðB (.§|¡|Ø&,§l¡lØ#Ø#'ñAà˜˜V˜Ñ$ðAð �s˜F�{Ñ#ðAð ˜‰}ð	Að
 ˜C‘=ðAð 
Ð6Ñ	7óAðB (.§|¡|Ø&,§l¡lØ#Ø#'ñ
à˜˜V˜Ñ$ð
ð �s˜F�{Ñ#ð
ð ˜‰}ð	
ð
 ˜C‘=ð
ð 
Ð-Ñ	.ó
ðD (.§|¡|Ø&,§l¡lØ#Ø#'ñ
à˜˜V˜Ñ$ð
ð �s˜F�{Ñ#ð
ð ˜‰}ð	
ð
 ˜C‘=ð
ð 
Ð-Ñ	.ó
ðF (.§|¡|Ø&,§l¡lØ)/¯©Ø*0¯,©,Ø(.¯©ñ%Tà˜˜V˜Ñ$ð%Tð �s˜F�{Ñ#ð%Tð ˜#˜v˜+Ñ&ð	%Tð
 ˜3 ˜;Ñ'ð%Tð ˜˜f˜Ñ%ð%Tð 
%ó%TðR (.§|¡|Ø&,§l¡lØ)/¯©Ø*0¯,©,Ø(.¯©ñ%Tà˜˜V˜Ñ$ð%Tð �s˜F�{Ñ#ð%Tð ˜#˜v˜+Ñ&ð	%Tð
 ˜3 ˜;Ñ'ð%Tð ˜˜f˜Ñ%ð%Tð 
%ó%TðN
T 3ð 
TÐ+Fó 
Tð
T¨sð 
TÐ7Ró 
TðG˜#÷ Gr   rW   N)Ú__doc__r   Útypingr   r   r   r   r   r	   r
   Útwilio.baser   r   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer   Útwilio.base.versionr   Útwilio.base.pager   r   rO   rW   r   r   r    ú<module>r™      sU   ðñõ ß L× LÑ Lß +å :Ý 2Ý 'Ý !ôO
Ð&6ô O
ôdG $ô Gô*G ,õ Gr   