Ë
    [üàg§k  ã                   óÜ   — 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 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 - Chat
    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)ÚInstanceContext)ÚInstanceResource)ÚListResource)ÚVersion)ÚPagec                   óR  ‡ — e Zd Z G d„ de«      Z	 	 ddedeeef   dedede	e   f
ˆ fd„Z
edd
„«       Zd	efd„Zd	efd„Zdd„Zdd„Zej&                  ej&                  fdeeef   deeef   d	d fd„Zej&                  ej&                  fdeeef   deeef   d	d fd„Zd	efd„Zˆ xZS )ÚMessageInstancec                   ó   — e Zd ZdZdZy)úMessageInstance.OrderTypeÚascÚdescN)Ú__name__Ú
__module__Ú__qualname__ÚASCÚDESC© ó    úi/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/chat/v1/service/channel/message.pyÚ	OrderTyper      s   „ ØˆØ‰r   r    ÚversionÚpayloadÚservice_sidÚchannel_sidÚsidc                 ó  •— t         ‰| �  |«       |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«      | _        t        j                   |j                  d«      «      | _        |j                  d«      | _        |||xs | j                  dœ| _        d | _        y )Nr%   Úaccount_sidÚ
attributesr#   Útor$   Údate_createdÚdate_updatedÚ
was_editedÚfromÚbodyÚindexÚurl©r#   r$   r%   )ÚsuperÚ__init__Úgetr%   r'   r(   r#   r)   r$   r   Úiso8601_datetimer*   r+   r,   Ú_fromr.   Úintegerr/   r0   Ú	_solutionÚ_context)Úselfr!   r"   r#   r$   r%   Ú	__class__s         €r   r3   zMessageInstance.__init__/   s7  ø€ ô 	‰Ñ˜Ô!à")§+¡+¨eÓ"4ˆŒØ*1¯+©+°mÓ*DˆÔØ)0¯©°\Ó)BˆŒØ*1¯+©+°mÓ*DˆÔØ!(§¡¨TÓ!2ˆŒØ*1¯+©+°mÓ*DˆÔÜ0;×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔô 1<×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔð +2¯+©+°lÓ*CˆŒØ$+§K¡K°Ó$7ˆŒ
Ø#*§;¡;¨vÓ#6ˆŒ	Ü$/×$7Ñ$7¸¿¹ÀGÓ8LÓ$MˆŒ
Ø")§+¡+¨eÓ"4ˆŒð 'Ø&Ø’?˜$Ÿ(™(ñ
ˆŒð
 37ˆ�r   Úreturnc                 ó¼   — | j                   €Et        | j                  | j                  d   | 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: MessageContext for this MessageInstance
        r#   r$   r%   r1   )r9   ÚMessageContextÚ_versionr8   ©r:   s    r   Ú_proxyzMessageInstance._proxyR   sQ   € ð �=‰=Ð Ü*Ø—‘Ø ŸN™N¨=Ñ9Ø ŸN™N¨=Ñ9Ø—N‘N 5Ñ)ô	ˆDŒMð �}‰}Ðr   c                 ó6   — | j                   j                  «       S )új
        Deletes the MessageInstance


        :returns: True if delete succeeds, False otherwise
        )rA   Údeleter@   s    r   rD   zMessageInstance.deletec   s   € ð �{‰{×!Ñ!Ó#Ð#r   c              ƒ   óR   K  — | j                   j                  «       ƒ d{  –—† S 7 Œ­w)ú†
        Asynchronous coroutine that deletes the MessageInstance


        :returns: True if delete succeeds, False otherwise
        N)rA   Údelete_asyncr@   s    r   rG   zMessageInstance.delete_asyncl   s!   è ø€ ð —[‘[×-Ñ-Ó/×/Ð/Ð/úó   ‚' %¡'c                 ó6   — | j                   j                  «       S )ú[
        Fetch the MessageInstance


        :returns: The fetched MessageInstance
        )rA   Úfetchr@   s    r   rK   zMessageInstance.fetchu   s   € ð �{‰{× Ñ Ó"Ð"r   c              ƒ   óR   K  — | j                   j                  «       ƒ d{  –—† S 7 Œ­w)úu
        Asynchronous coroutine to fetch the MessageInstance


        :returns: The fetched MessageInstance
        N)rA   Úfetch_asyncr@   s    r   rN   zMessageInstance.fetch_async~   s!   è ø€ ð —[‘[×,Ñ,Ó.×.Ð.Ð.úrH   r.   r(   c                 ó<   — | j                   j                  ||¬«      S )á…  
        Update the MessageInstance

        :param body: The message to send to the channel. Can also be an empty string or `null`, which sets the value as an empty string. You can send structured data in the body by serializing it as a string.
        :param attributes: A valid JSON string that contains application-specific data.

        :returns: The updated MessageInstance
        ©r.   r(   )rA   Úupdate©r:   r.   r(   s      r   rR   zMessageInstance.update‡   s&   € ð �{‰{×!Ñ!ØØ!ð "ó 
ð 	
r   c              ƒ   óX   K  — | j                   j                  ||¬«      ƒ d{  –—† S 7 Œ­w)áŸ  
        Asynchronous coroutine to update the MessageInstance

        :param body: The message to send to the channel. Can also be an empty string or `null`, which sets the value as an empty string. You can send structured data in the body by serializing it as a string.
        :param attributes: A valid JSON string that contains application-specific data.

        :returns: The updated MessageInstance
        rQ   N)rA   Úupdate_asyncrS   s      r   rV   zMessageInstance.update_async™   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+MessageInstance.__repr__.<locals>.<genexpr>±   ó   è ø€ ÒS±D°A°q˜7Ÿ>™>¨!¨Q×/ÑSùó   ‚!z#<Twilio.Chat.V1.MessageInstance {}>©Újoinr8   Úitemsr]   ©r:   Úcontexts     r   Ú__repr__zMessageInstance.__repr__«   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ4×;Ñ;¸GÓDÐDr   )N)r<   r>   )r<   r   )r   r   r   Úobjectr    r   r   Ústrr   r   r3   ÚpropertyrA   ÚboolrD   rG   rK   rN   r   Úunsetr   rR   rV   rj   Ú__classcell__©r;   s   @r   r   r      s%  ø„ ô�Fô ðð, "ñ!7àð!7ð �c˜3�h‘ð!7ð ð	!7ð
 ð!7ð �c‰]õ!7ðF òó ðð $˜ó $ð0 Dó 0ó#ó/ð $*§<¡<Ø)/¯©ñ
à�C˜�KÑ ð
ð ˜#˜v˜+Ñ&ð
ð 
ó	
ð( $*§<¡<Ø)/¯©ñ
à�C˜�KÑ ð
ð ˜#˜v˜+Ñ&ð
ð 
ó	
ð$E˜#÷ Er   r   c                   ó  ‡ — e Zd Zde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ej                  ej                  fdeeef   deeef   de	fd„Zej                  ej                  fdeeef   deeef   de	fd„Zdefd„Zˆ xZS )r>   r!   r#   r$   r%   c                 ó|   •— t         ‰| �  |«       |||dœ| _         dj                  di | j                  ¤Ž| _        y)a  
        Initialize the MessageContext

        :param version: Version that contains the resource
        :param service_sid: The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to update the resource from.
        :param channel_sid: The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the message belongs to. Can be the Channel's `sid` or `unique_name`.
        :param sid: The Twilio-provided string that uniquely identifies the Message resource to update.
        r1   z=/Services/{service_sid}/Channels/{channel_sid}/Messages/{sid}Nr   ©r2   r3   r8   r]   Ú_uri)r:   r!   r#   r$   r%   r;   s        €r   r3   zMessageContext.__init__·   sM   ø€ ô 	‰Ñ˜Ô!ð 'Ø&Øñ
ˆŒð SÐK×RÑRñ Ø—.‘.ñð 	�	r   r<   c                 ó|   — t        j                  i «      }| j                  j                  d| j                  |¬«      S )rC   ÚDELETE©ÚmethodÚuriÚheaders)r   Úofr?   rD   ru   ©r:   r{   s     r   rD   zMessageContext.deleteÎ   s1   € ô —)‘)˜B“-ˆà�}‰}×#Ñ#¨8¸¿¹ÈGÐ#ÓTÐTr   c              ƒ   ó˜   K  — t        j                  i «      }| j                  j                  d| j                  |¬«      ƒ d{  –—† S 7 Œ­w)rF   rw   rx   N)r   r|   r?   rG   ru   r}   s     r   rG   zMessageContext.delete_asyncÚ   sF   è ø€ ô —)‘)˜B“-ˆà—]‘]×/Ñ/Ø §¡°Gð 0ó 
÷ 
ð 	
ð 
ús   ‚AA
ÁAÁA
c                 ó  — t        j                  i «      }d|d<   | j                  j                  d| j                  |¬«      }t        | j                  || j                  d   | j                  d   | j                  d   ¬«      S )	rJ   úapplication/jsonÚAcceptÚGETrx   r#   r$   r%   r1   )r   r|   r?   rK   ru   r   r8   ©r:   r{   r"   s      r   rK   zMessageContext.fetchè   su   € ô —)‘)˜B“-ˆà.ˆ�Ñà—-‘-×%Ñ%¨U¸¿	¹	È7Ð%ÓSˆäØ�M‰MØØŸ™ }Ñ5ØŸ™ }Ñ5Ø—‘˜uÑ%ô
ð 	
r   c              ƒ   ó$  K  — t        j                  i «      }d|d<   | j                  j                  d| j                  |¬«      ƒ d{  –—† }t        | j                  || j                  d   | j                  d   | j                  d   ¬	«      S 7 ŒE­w)
rM   r€   r�   r‚   rx   Nr#   r$   r%   r1   )r   r|   r?   rN   ru   r   r8   rƒ   s      r   rN   zMessageContext.fetch_asyncþ   sŠ   è ø€ ô —)‘)˜B“-ˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°ð 2ó 
÷ 
ˆô Ø�M‰MØØŸ™ }Ñ5ØŸ™ }Ñ5Ø—‘˜uÑ%ô
ð 	
ð	
ús   ‚ABÁBÁ	ABr.   r(   c                 óD  — t        j                  ||dœ«      }t        j                  i «      }d|d<   d|d<   | j                  j                  d| j                  ||¬«      }t        | j                  || j                  d   | j                  d	   | j                  d
   ¬«      S )rP   ©ÚBodyÚ
Attributesú!application/x-www-form-urlencodedúContent-Typer€   r�   ÚPOST©ry   rz   Údatar{   r#   r$   r%   r1   )r   r|   r?   rR   ru   r   r8   ©r:   r.   r(   r�   r{   r"   s         r   rR   zMessageContext.update  s£   € ô �y‰yàØ(ñó
ˆô —)‘)˜B“-ˆà"Eˆ�Ñà.ˆ�Ñà—-‘-×&Ñ&Ø˜tŸy™y¨t¸Wð 'ó 
ˆô Ø�M‰MØØŸ™ }Ñ5ØŸ™ }Ñ5Ø—‘˜uÑ%ô
ð 	
r   c              ƒ   ó`  K  — t        j                  ||dœ«      }t        j                  i «      }d|d<   d|d<   | j                  j                  d| j                  ||¬«      ƒ d{  –—† }t        | j                  || j                  d	   | j                  d
   | j                  d   ¬«      S 7 ŒE­w)rU   r†   r‰   rŠ   r€   r�   r‹   rŒ   Nr#   r$   r%   r1   )r   r|   r?   rV   ru   r   r8   rŽ   s         r   rV   zMessageContext.update_async<  s±   è ø€ ô �y‰yàØ(ñó
ˆô —)‘)˜B“-ˆà"Eˆ�Ñà.ˆ�ÑàŸ™×2Ñ2Ø˜tŸy™y¨t¸Wð 3ó 
÷ 
ˆô Ø�M‰MØØŸ™ }Ñ5ØŸ™ }Ñ5Ø—‘˜uÑ%ô
ð 	
ð	
ús   ‚A$B.Á&B,Á'AB.c                 ó„   — dj                  d„ | j                  j                  «       D «       «      }dj                  |«      S )rX   rY   c              3   óF   K  — | ]  \  }}d j                  ||«      –— Œ y­wr[   r\   r^   s      r   rb   z*MessageContext.__repr__.<locals>.<genexpr>h  rc   rd   z"<Twilio.Chat.V1.MessageContext {}>re   rh   s     r   rj   zMessageContext.__repr__b  s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ3×:Ñ:¸7ÓCÐCr   )r   r   r   r   rl   r3   rn   rD   rG   r   rK   rN   r   ro   r   rk   rR   rV   rj   rp   rq   s   @r   r>   r>   µ   sí   ø„ ð
 ð 
°cð 
Èð 
ÐRUõ 
ð.
U˜ó 
Uð
 Dó 
ð
�ó 
ð,
 ?ó 
ð4 $*§<¡<Ø)/¯©ñ$
à�C˜�KÑ ð$
ð ˜#˜v˜+Ñ&ð$
ð 
ó	$
ðP $*§<¡<Ø)/¯©ñ$
à�C˜�KÑ ð$
ð ˜#˜v˜+Ñ&ð$
ð 
ó	$
ðLD˜#÷ Dr   r>   c                   ó2   — e Zd Zdeeef   defd„Zdefd„Zy)ÚMessagePager"   r<   c                 óh   — t        | j                  || j                  d   | j                  d   ¬«      S )zm
        Build an instance of MessageInstance

        :param payload: Payload response from the API
        r#   r$   ©r#   r$   )r   r?   r8   )r:   r"   s     r   Úget_instancezMessagePage.get_instancen  s3   € ô Ø�M‰MØØŸ™ }Ñ5ØŸ™ }Ñ5ô	
ð 	
r   c                  ó   — y)rX   z<Twilio.Chat.V1.MessagePage>r   r@   s    r   rj   zMessagePage.__repr__{  ó   € ð .r   N)	r   r   r   r   rl   r   r   r–   rj   r   r   r   r“   r“   l  s)   „ ð
 D¨¨c¨¡Nð 
°ó 
ð.˜#ô .r   r“   c                   ó¨  ‡ — e Zd Zdededefˆ fd„Zej                  ej                  fdedeee	f   deee	f   de
fd	„Zej                  ej                  fdedeee	f   deee	f   de
fd
„Zej                  ddfdede	f   dee   dee   dee
   fd„Zej                  ddfdede	f   dee   dee   dee
   fd„Zej                  ddfdede	f   dee   dee   dee
   fd„Zej                  ddfdede	f   dee   dee   dee
   fd„Zej                  ej                  ej                  ej                  fded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                  fded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defd„Zdedefd„Zdefd„Zˆ xZS )ÚMessageListr!   r#   r$   c                 óz   •— t         ‰| �  |«       ||dœ| _         dj                  di | j                  ¤Ž| _        y)aª  
        Initialize the MessageList

        :param version: Version that contains the resource
        :param service_sid: The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from.
        :param channel_sid: The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the message to read belongs to. Can be the Channel's `sid` or `unique_name`.

        r•   z7/Services/{service_sid}/Channels/{channel_sid}/MessagesNr   rt   )r:   r!   r#   r$   r;   s       €r   r3   zMessageList.__init__†  sG   ø€ ô 	‰Ñ˜Ô!ð 'Ø&ñ
ˆŒð UÐM×TÑTñ 
Ø�n‰nñ
ˆ�	r   r.   Úfrom_r(   r<   c                 ó.  — t        j                  |||dœ«      }t        j                  ddi«      }d|d<   d|d<   | j                  j                  d| j                  ||¬«      }t        | j                  || j                  d   | j                  d	   ¬
«      S )a  
        Create the MessageInstance

        :param body: The message to send to the channel. Can also be an empty string or `null`, which sets the value as an empty string. You can send structured data in the body by serializing it as a string.
        :param from_: The [identity](https://www.twilio.com/docs/api/chat/guides/identity) of the new message's author. The default value is `system`.
        :param attributes: A valid JSON string that contains application-specific data.

        :returns: The created MessageInstance
        ©r‡   ÚFromrˆ   rŠ   r‰   r€   r�   r‹   rŒ   r#   r$   r•   )r   r|   r?   Úcreateru   r   r8   ©r:   r.   rœ   r(   r�   r{   r"   s          r   r    zMessageList.createš  s¡   € ô  �y‰yàØØ(ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà"Eˆ�Ñà.ˆ�Ñà—-‘-×&Ñ&Ø˜tŸy™y¨t¸Wð 'ó 
ˆô Ø�M‰MØØŸ™ }Ñ5ØŸ™ }Ñ5ô	
ð 	
r   c              ƒ   óJ  K  — t        j                  |||dœ«      }t        j                  ddi«      }d|d<   d|d<   | j                  j                  d| j                  ||¬«      ƒ d{  –—† }t        | j                  || j                  d	   | j                  d
   ¬«      S 7 Œ7­w)a+  
        Asynchronously create the MessageInstance

        :param body: The message to send to the channel. Can also be an empty string or `null`, which sets the value as an empty string. You can send structured data in the body by serializing it as a string.
        :param from_: The [identity](https://www.twilio.com/docs/api/chat/guides/identity) of the new message's author. The default value is `system`.
        :param attributes: A valid JSON string that contains application-specific data.

        :returns: The created MessageInstance
        rž   rŠ   r‰   r€   r�   r‹   rŒ   Nr#   r$   r•   )r   r|   r?   Úcreate_asyncru   r   r8   r¡   s          r   r£   zMessageList.create_asyncÂ  s¯   è ø€ ô  �y‰yàØØ(ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà"Eˆ�Ñà.ˆ�ÑàŸ™×2Ñ2Ø˜tŸy™y¨t¸Wð 3ó 
÷ 
ˆô Ø�M‰MØØŸ™ }Ñ5ØŸ™ }Ñ5ô	
ð 	
ð	
ús   ‚A'B#Á)B!Á*8B#NÚorderr   ÚlimitÚ	page_sizec                 ó¤   — | j                   j                  ||«      }| j                  ||d   ¬«      }| j                   j                  ||d   «      S )a  
        Streams MessageInstance 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 &quot;MessageInstance.OrderType&quot; order: The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending) with `asc` as the default.
        :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¦   r¥   )r?   Úread_limitsÚpageÚstream©r:   r¤   r¥   r¦   Úlimitsrª   s         r   r«   zMessageList.streamê  sL   € ð, —‘×*Ñ*¨5°)Ó<ˆØ�y‰y˜u°°{Ñ0CˆyÓDˆà�}‰}×#Ñ# D¨&°©/Ó:Ð:r   c              ƒ   óÀ   K  — | j                   j                  ||«      }| j                  ||d   ¬«      ƒ d{  –—† }| j                   j                  ||d   «      S 7 Œ#­w)a  
        Asynchronously streams MessageInstance 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 &quot;MessageInstance.OrderType&quot; order: The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending) with `asc` as the default.
        :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¥   )r?   r©   Ú
page_asyncÚstream_asyncr¬   s         r   r°   zMessageList.stream_async  sY   è ø€ ð, —‘×*Ñ*¨5°)Ó<ˆØ—_‘_¨5¸FÀ;Ñ<O�_ÓP×Pˆà�}‰}×)Ñ)¨$°°w±Ó@Ð@ð Qús   ‚6A¸A¹$Ac                 ó<   — t        | j                  |||¬«      «      S )a«  
        Lists MessageInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param &quot;MessageInstance.OrderType&quot; order: The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending) with `asc` as the default.
        :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¥   r¦   )Úlistr«   )r:   r¤   r¥   r¦   s       r   r³   zMessageList.list   s+   € ô* Ø�K‰KØØØ#ð ó ó
ð 	
r   c              ƒ   ó|   K  — | j                  |||¬«      ƒ d{  –—† 2 �cg c3 d{  –—† }|‘Œ7 Œ7 Œ	6 c}S c c}w ­w)aº  
        Asynchronously lists MessageInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param &quot;MessageInstance.OrderType&quot; order: The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending) with `asc` as the default.
        :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°   )r:   r¤   r¥   r¦   Úrecords        r   Ú
list_asynczMessageList.list_async=  sW   è ø€ ð. '+×&7Ñ&7ØØØ#ð '8ó '÷ !÷
ô 
àò ð!øð
øò 
ð 	
ùò 
ùs0   ‚<š/›<¡7£3§1
¨3«7¯<±3³7´<Ú
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 MessageInstance records from the API.
        Request is executed immediately

        :param order: The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending) with `asc` as the default.
        :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 MessageInstance
        ©ÚOrderÚ	PageTokenr   ÚPageSizerŠ   r‰   r€   r�   r‚   ©ry   rz   Úparamsr{   )r   r|   r?   rª   ru   r“   r8   ©r:   r¤   r·   r¸   r¦   r�   r{   Úresponses           r   rª   zMessageList.page[  s‚   € ô$ �y‰yàØ'Ø#Ø%ñ	ó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�Ñà—=‘=×%Ñ%Ø˜dŸi™i°¸gð &ó 
ˆô ˜4Ÿ=™=¨(°D·N±NÓCÐCr   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 MessageInstance records from the API.
        Request is executed immediately

        :param order: The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending) with `asc` as the default.
        :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 MessageInstance
        rº   rŠ   r‰   r€   r�   r‚   r¾   N)r   r|   r?   r¯   ru   r“   r8   rÀ   s           r   r¯   zMessageList.page_async  s�   è ø€ ô$ �y‰yàØ'Ø#Ø%ñ	ó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°¸gð 2ó 
÷ 
ˆô ˜4Ÿ=™=¨(°D·N±NÓCÐCð
ús   ‚A#BÁ%BÁ&&BÚ
target_urlc                 ó¤   — | j                   j                  j                  j                  d|«      }t	        | j                   || j
                  «      S )zó
        Retrieve a specific page of MessageInstance records from the API.
        Request is executed immediately

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

        :returns: Page of MessageInstance
        r‚   )r?   ÚdomainÚtwilioÚrequestr“   r8   ©r:   rÃ   rÁ   s      r   Úget_pagezMessageList.get_page£  s=   € ð —=‘=×'Ñ'×.Ñ.×6Ñ6°u¸jÓIˆÜ˜4Ÿ=™=¨(°D·N±NÓCÐCr   c              ƒ   óÀ   K  — | j                   j                  j                  j                  d|«      ƒ d{  –—† }t	        | j                   || j
                  «      S 7 Œ%­w)a  
        Asynchronously retrieve a specific page of MessageInstance records from the API.
        Request is executed immediately

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

        :returns: Page of MessageInstance
        r‚   N)r?   rÅ   rÆ   Úrequest_asyncr“   r8   rÈ   s      r   Úget_page_asynczMessageList.get_page_async¯  sJ   è ø€ ð Ÿ™×-Ñ-×4Ñ4×BÑBÀ5È*ÓU×UˆÜ˜4Ÿ=™=¨(°D·N±NÓCÐCð Vús   ‚4A¶A·&Ar%   c                 óh   — t        | j                  | j                  d   | j                  d   |¬«      S ©z–
        Constructs a MessageContext

        :param sid: The Twilio-provided string that uniquely identifies the Message resource to update.
        r#   r$   r1   ©r>   r?   r8   ©r:   r%   s     r   r4   zMessageList.get»  ó3   € ô Ø�M‰MØŸ™ }Ñ5ØŸ™ }Ñ5Øô	
ð 	
r   c                 óh   — t        | j                  | j                  d   | j                  d   |¬«      S rÎ   rÏ   rÐ   s     r   Ú__call__zMessageList.__call__È  rÑ   r   c                  ó   — y)rX   z<Twilio.Chat.V1.MessageList>r   r@   s    r   rj   zMessageList.__repr__Õ  r˜   r   ) r   r   r   r   rl   r3   r   ro   r   rk   r   r    r£   r   Úintr	   r«   r
   r°   r   r³   r¶   r“   rª   r¯   rÉ   rÌ   r>   r4   rÓ   rj   rp   rq   s   @r   rš   rš   „  sk  ø„ ð
 ð 
°cð 
Èõ 
ð. %+§L¡LØ)/¯©ñ	&
àð&
ð �S˜&�[Ñ!ð&
ð ˜#˜v˜+Ñ&ð	&
ð
 
ó&
ðV %+§L¡LØ)/¯©ñ	&
àð&
ð �S˜&�[Ñ!ð&
ð ˜#˜v˜+Ñ&ð	&
ð
 
ó&
ðT =C¿L¹LØ#Ø#'ñ	;àÐ0°&Ð8Ñ9ð;ð ˜‰}ð;ð ˜C‘=ð	;ð
 
�/Ñ	"ó;ð: =C¿L¹LØ#Ø#'ñ	AàÐ0°&Ð8Ñ9ðAð ˜‰}ðAð ˜C‘=ð	Að
 
�Ñ	'óAð: =C¿L¹LØ#Ø#'ñ	
àÐ0°&Ð8Ñ9ð
ð ˜‰}ð
ð ˜C‘=ð	
ð
 
ˆoÑ	ó
ð> =C¿L¹LØ#Ø#'ñ	
àÐ0°&Ð8Ñ9ð
ð ˜‰}ð
ð ˜C‘=ð	
ð
 
ˆoÑ	ó
ð@ =C¿L¹LØ)/¯©Ø*0¯,©,Ø(.¯©ñ"DàÐ0°&Ð8Ñ9ð"Dð ˜#˜v˜+Ñ&ð"Dð ˜3 ˜;Ñ'ð	"Dð
 ˜˜f˜Ñ%ð"Dð 
ó"DðL =C¿L¹LØ)/¯©Ø*0¯,©,Ø(.¯©ñ"DàÐ0°&Ð8Ñ9ð"Dð ˜#˜v˜+Ñ&ð"Dð ˜3 ˜;Ñ'ð	"Dð
 ˜˜f˜Ñ%ð"Dð 
ó"DðH
D 3ð 
D¨;ó 
Dð
D¨sð 
D°{ó 
Dð
�sð 
˜~ó 
ð
˜Cð 
 Nó 
ð.˜#÷ .r   rš   N)Ú__doc__r   Útypingr   r   r   r   r   r	   r
   Útwilio.baser   r   Útwilio.base.instance_contextr   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer   Útwilio.base.versionr   Útwilio.base.pager   r   r>   r“   rš   r   r   r   ú<module>rÞ      sg   ðñõ ß L× LÑ Lß +Ý 8Ý :Ý 2Ý 'Ý !ôYEÐ&ô YEôxtD�_ô tDôn.�$ô .ô0W.�,õ W.r   