Ë
    [üàg{J  ã                   óº   — 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                   óV   ‡ — e Zd Z G d„ de«      Z	 dedeeef   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© ó    ús/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/conversations/v1/participant_conversation.pyÚStater      s   „ ØˆØˆØ‰r   r!   ÚversionÚpayloadc                 ó0  •— 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«      | _        y )NÚaccount_sidÚchat_service_sidÚ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   )Úselfr"   r#   Ú	__class__s      €r    r6   z(ParticipantConversationInstance.__init__3   so  ø€ Ü‰Ñ˜Ô!à*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ˆ�
r   Úreturnc                  ó   — y)úf
        Provide a friendly representation

        :returns: Machine friendly representation
        z9<Twilio.Conversations.V1.ParticipantConversationInstance>r   ©r9   s    r    Ú__repr__z(ParticipantConversationInstance.__repr__Y   s   € ð Kr   )r   r   r   Úobjectr!   r   r   Ústrr   r6   r?   Ú__classcell__©r:   s   @r    r   r      sA   ø„ ô�ô ð
ð&$G ð $G°$°s¸C°x±.õ $GðLK˜#÷ K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                 ó.   — t        | j                  |«      S )z}
        Build an instance of ParticipantConversationInstance

        :param payload: Payload response from the API
        )r   Ú_version)r9   r#   s     r    Úget_instancez(ParticipantConversationPage.get_instancee   s   € ô /¨t¯}©}¸gÓFÐFr   c                  ó   — y)r=   z5<Twilio.Conversations.V1.ParticipantConversationPage>r   r>   s    r    r?   z$ParticipantConversationPage.__repr__m   ó   € ð Gr   N)	r   r   r   r   rA   r   r   rH   r?   r   r   r    rE   rE   c   s/   „ ðG D¨¨c¨¡Nð GÐ7Vó GðG˜#ô Gr   rE   c                   ó¤  ‡ — e Zd Z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"   c                 ó2   •— t         ‰| �  |«       d| _        y)zy
        Initialize the ParticipantConversationList

        :param version: Version that contains the resource

        z/ParticipantConversationsN)r5   r6   Ú_uri)r9   r"   r:   s     €r    r6   z$ParticipantConversationList.__init__x   s   ø€ ô 	‰Ñ˜Ô!à/ˆ�	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
        rR   ©rO   rP   rR   rQ   )rG   Úread_limitsÚpageÚstream©r9   rO   rP   rQ   rR   ÚlimitsrV   s          r    rW   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
        rR   rT   NrQ   )rG   rU   Ú
page_asyncÚstream_asyncrX   s          r    r\   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
        ©rO   rP   rQ   rR   )ÚlistrW   )r9   rO   rP   rQ   rR   s        r    r_   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
        r^   N)r\   )r9   rO   rP   rQ   rR   Ú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                  |«      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   ÚofrG   rV   rN   rE   ©	r9   rO   rP   rc   rd   rR   Údatart   Úresponses	            r    rV   z ParticipantConversationList.page  s   € ô( �y‰yà$Ø"Ø'Ø#Ø%ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�Ñà—=‘=×%Ñ%Ø˜dŸi™i°¸gð &ó 
ˆô +¨4¯=©=¸(ÓCÐCr   c              ƒ   ó
  K  — t        j                  |||||dœ«      }t        j                  ddi«      }d|d<   | j                  j                  d| j                  ||¬«      ƒ d{  –—† }t        | 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
        rf   rk   rl   rm   rn   ro   rp   N)r   ru   rG   r[   rN   rE   rv   s	            r    r[   z&ParticipantConversationList.page_async)  s�   è ø€ ô( �y‰yà$Ø"Ø'Ø#Ø%ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°¸gð 2ó 
÷ 
ˆô +¨4¯=©=¸(ÓCÐCð
ús   ‚A$BÁ&BÁ'BÚ
target_urlc                 óŽ   — | j                   j                  j                  j                  d|«      }t	        | 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
        ro   )rG   ÚdomainÚtwilioÚrequestrE   ©r9   rz   rx   s      r    Úget_pagez$ParticipantConversationList.get_pageP  s7   € ð —=‘=×'Ñ'×.Ñ.×6Ñ6°u¸jÓIˆÜ*¨4¯=©=¸(ÓCÐCr   c              ƒ   óª   K  — | j                   j                  j                  j                  d|«      ƒ d{  –—† }t	        | 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
        ro   N)rG   r|   r}   Úrequest_asyncrE   r   s      r    Úget_page_asyncz*ParticipantConversationList.get_page_async\  sD   è ø€ ð Ÿ™×-Ñ-×4Ñ4×BÑBÀ5È*ÓU×UˆÜ*¨4¯=©=¸(ÓCÐCð Vús   ‚4A¶A·Ac                  ó   — y)r=   z5<Twilio.Conversations.V1.ParticipantConversationList>r   r>   s    r    r?   z$ParticipantConversationList.__repr__h  rJ   r   )r   r   r   r   r6   r   Úunsetr   rA   r@   r   Úintr	   r   rW   r
   r\   r   r_   rb   rE   rV   r[   r€   rƒ   r?   rB   rC   s   @r    rL   rL   v   s3  ø„ ð	0 õ 	0ð (.§|¡|Ø&,§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¯,©,Ø(.¯©ñ%Dà˜˜V˜Ñ$ð%Dð �s˜F�{Ñ#ð%Dð ˜#˜v˜+Ñ&ð	%Dð
 ˜3 ˜;Ñ'ð%Dð ˜˜f˜Ñ%ð%Dð 
%ó%DðR (.§|¡|Ø&,§l¡lØ)/¯©Ø*0¯,©,Ø(.¯©ñ%Dà˜˜V˜Ñ$ð%Dð �s˜F�{Ñ#ð%Dð ˜#˜v˜+Ñ&ð	%Dð
 ˜3 ˜;Ñ'ð%Dð ˜˜f˜Ñ%ð%Dð 
%ó%DðN
D 3ð 
DÐ+Fó 
Dð
D¨sð 
DÐ7Ró 
DðG˜#÷ Gr   rL   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   rE   rL   r   r   r    ú<module>rŽ      sW   ðñõ ß L× LÑ Lß +å :Ý 2Ý 'Ý !ôGKÐ&6ô GKôTG $ô Gô&xG ,õ xGr   