
    g                         S r SSKJr  SSKJrJrJrJrJrJrJ	r	  SSK
JrJrJr  SSKJr  SSKJr  SSKJr  SSKJr  SS	KJr   " S
 S\5      r " S S\5      r " S S\5      r " S S\5      rg)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	serializevalues)InstanceContext)InstanceResource)ListResource)Version)Pagec                   B  ^  \ rS rSr " S S\5      r " S S\5      r  SS\S\\	\
4   S\	S	\	S
\\	   4
U 4S jjjr\SS j5       r\R                   4S\S\4   S\4S jjr\R                   4S\S\4   S\4S jjrS S jrS S jr\R                   \R                   \R                   \R                   \R                   \R                   \R                   4S\S\4   S\\	\4   S\\	\4   S\\\4   S\\\4   S\\	\4   S\\	\4   SS 4S jjr\R                   \R                   \R                   \R                   \R                   \R                   \R                   4S\S\4   S\\	\4   S\\	\4   S\\\4   S\\\4   S\\	\4   S\\	\4   SS 4S jjrS\	4S jrSrU =r$ )!MessageInstance   c                       \ rS rSrSrSrSrg)MessageInstance.OrderType   ascdesc N)__name__
__module____qualname____firstlineno__ASCDESC__static_attributes__r       s/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/chat/v2/service/channel/message.py	OrderTyper      s    r#   r%   c                       \ rS rSrSrSrSrg)"MessageInstance.WebhookEnabledType   truefalser   N)r   r   r   r   TRUEFALSEr"   r   r#   r$   WebhookEnabledTyper'      s    r#   r-   versionpayloadservice_sidchannel_sidsidc                   > [         TU ]  U5        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        [        R                  " UR                  S5      5      U l        [        R                  " UR                  S5      5      U l        UR                  S	5      U l        UR                  S
5      U l        UR                  S5      U l        UR                  S5      U l        [        R"                  " UR                  S5      5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UUU=(       d    U R                  S.U l        S U l        g )Nr2   account_sid
attributesr0   tor1   date_createddate_updatedlast_updated_by
was_editedfrombodyindextypemediaurlr0   r1   r2   )super__init__getr2   r4   r5   r0   r6   r1   r   iso8601_datetimer7   r8   r9   r:   _fromr<   integerr=   r>   r?   r@   	_solution_context)selfr.   r/   r0   r1   r2   	__class__s         r$   rC   MessageInstance.__init__6   si    	!")++e"4*1++m*D)0\)B*1++m*D!(T!2*1++m*D0;0L0LKK'1
 1<0L0LKK'1
 /6kk:K.L*1++l*C$+KK$7
#*;;v#6	$/$7$7G8L$M
#*;;v#6	29++g2F
")++e"4 '&?$((

 37r#   returnc                     U R                   cB  [        U R                  U R                  S   U R                  S   U R                  S   S9U l         U R                   $ )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
r0   r1   r2   rA   )rI   MessageContext_versionrH   rJ   s    r$   _proxyMessageInstance._proxy\   sQ     == * NN=9 NN=9NN5)	DM }}r#   x_twilio_webhook_enabledr'   c                 4    U R                   R                  US9$ )
Deletes the MessageInstance

:param x_twilio_webhook_enabled: The X-Twilio-Webhook-Enabled HTTP request header

:returns: True if delete succeeds, False otherwise
rT   )rR   deleterJ   rT   s     r$   rX   MessageInstance.deletem   s#     {{!!%= " 
 	
r#   c                 P   #    U R                   R                  US9I Sh  vN $  N7f)
Asynchronous coroutine that deletes the MessageInstance

:param x_twilio_webhook_enabled: The X-Twilio-Webhook-Enabled HTTP request header

:returns: True if delete succeeds, False otherwise
rW   N)rR   delete_asyncrY   s     r$   r]   MessageInstance.delete_async~   s0      [[--%= . 
 
 	
 
s   &$&c                 6    U R                   R                  5       $ )C
Fetch the MessageInstance


:returns: The fetched MessageInstance
)rR   fetchrQ   s    r$   ra   MessageInstance.fetch   s     {{  ""r#   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)]
Asynchronous coroutine to fetch the MessageInstance


:returns: The fetched MessageInstance
N)rR   fetch_asyncrQ   s    r$   re   MessageInstance.fetch_async   s       [[,,....s   '%'r<   r5   r7   r8   r9   from_c           
      @    U R                   R                  UUUUUUUS9$ )  
Update the MessageInstance

:param x_twilio_webhook_enabled: The X-Twilio-Webhook-Enabled HTTP request header
:param body: The message to send to the channel. Can 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.
:param date_created: The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. This parameter should only be used when a Chat's history is being recreated from a backup/separate source.
:param date_updated: The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated.
:param last_updated_by: The [Identity](https://www.twilio.com/docs/chat/identity) of the User who last updated the Message, if applicable.
:param from_: The [Identity](https://www.twilio.com/docs/chat/identity) of the message's author.

:returns: The updated MessageInstance
rT   r<   r5   r7   r8   r9   rg   )rR   updaterJ   rT   r<   r5   r7   r8   r9   rg   s           r$   rk   MessageInstance.update   s5    2 {{!!%=!%%+ " 
 	
r#   c           
      \   #    U R                   R                  UUUUUUUS9I Sh  vN $  N7f)  
Asynchronous coroutine to update the MessageInstance

:param x_twilio_webhook_enabled: The X-Twilio-Webhook-Enabled HTTP request header
:param body: The message to send to the channel. Can 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.
:param date_created: The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. This parameter should only be used when a Chat's history is being recreated from a backup/separate source.
:param date_updated: The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated.
:param last_updated_by: The [Identity](https://www.twilio.com/docs/chat/identity) of the User who last updated the Message, if applicable.
:param from_: The [Identity](https://www.twilio.com/docs/chat/identity) of the message's author.

:returns: The updated MessageInstance
rj   N)rR   update_asyncrl   s           r$   rp   MessageInstance.update_async   sB     2 [[--%=!%%+ . 
 
 	
 
s   #,*,c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )N
Provide a friendly representation

:returns: Machine friendly representation
 c              3   H   #    U  H  u  pS R                  X5      v   M     g7fz{}={}Nformat.0kvs      r$   	<genexpr>+MessageInstance.__repr__.<locals>.<genexpr>         S<RDA7>>!//<R    "z#<Twilio.Chat.V2.MessageInstance {}>joinrH   itemsrx   rJ   contexts     r$   __repr__MessageInstance.__repr__   s6     ((SDNN<P<P<RSS4;;GDDr#   )rI   rF   rH   r4   r5   r<   r1   r7   r8   r=   r9   r?   r0   r2   r6   r>   r@   r:   )N)rM   rO   )rM   r   )r   r   r   r   objectr%   r-   r   r   strr   r   rC   propertyrR   r   unsetr   boolrX   r]   ra   re   r   rk   rp   r   r"   __classcell__rK   s   @r$   r   r      s   F V 2 "$7$7 c3h$7 	$7
 $7 c]$7 $7L  ( LL	
"'0&8#


 

* LL	
"'0&8#


 

"#/ LL#)<<)/0606.4ll$*LL!
"'0&8#
!

 CK !
 #v+&!
 Hf,-!
 Hf,-!
 sF{+!
 S&[!!
 
!
N LL#)<<)/0606.4ll$*LL!
"'0&8#
!

 CK !
 #v+&!
 Hf,-!
 Hf,-!
 sF{+!
 S&[!!
 
!
FE# E Er#   r   c                     ^  \ rS rSrS\S\S\S\4U 4S jjr\R                  4S\	S\
4   S	\4S
 jjr\R                  4S\	S\
4   S	\4S jjrS	\4S jrS	\4S jr\R                  \R                  \R                  \R                  \R                  \R                  \R                  4S\	S\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S	\4S jjr\R                  \R                  \R                  \R                  \R                  \R                  \R                  4S\	S\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S	\4S jjrS	\4S jrSrU =r$ )rO      r.   r0   r1   r2   c                 |   > [         TU ]  U5        UUUS.U l        SR                  " S0 U R                  D6U l        g)a  
Initialize the MessageContext

:param version: Version that contains the resource
:param service_sid: The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the Message resource in.
:param channel_sid: The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Message resource to update belongs to. This value can be the Channel resource's `sid` or `unique_name`.
:param sid: The SID of the Message resource to update.
rA   z=/Services/{service_sid}/Channels/{channel_sid}/Messages/{sid}Nr   rB   rC   rH   rx   _uri)rJ   r.   r0   r1   r2   rK   s        r$   rC   MessageContext.__init__   sJ     	! '&
 LRR .. 		r#   rT   r'   rM   c                     [         R                  " SU05      n[         R                  " 0 5      nU R                  R                  SU R                  US9$ )rV   X-Twilio-Webhook-EnabledDELETEmethoduriheaders)r   ofrP   rX   r   rJ   rT   r   s      r$   rX   MessageContext.delete
  sL     ))*,D
 ))B-}}##8G#TTr#   c                    #    [         R                  " SU05      n[         R                  " 0 5      nU R                  R                  SU R                  US9I Sh  vN $  N7f)r\   r   r   r   N)r   r   rP   r]   r   r   s      r$   r]   MessageContext.delete_async!  s`      ))*,D
 ))B-]]//G 0 
 
 	
 
s   AA AA c                     [         R                  " 0 5      nSUS'   U R                  R                  SU R                  US9n[        U R                  UU R                  S   U R                  S   U R                  S   S9$ )	r`   application/jsonAcceptGETr   r0   r1   r2   rA   )r   r   rP   ra   r   r   rH   rJ   r   r/   s      r$   ra   MessageContext.fetch:  su     ))B-.--%%U		7%SMM}5}5u%
 	
r#   c                   #    [         R                  " 0 5      nSUS'   U R                  R                  SU R                  US9I Sh  vN n[        U R                  UU R                  S   U R                  S   U R                  S   S	9$  NB7f)
rd   r   r   r   r   Nr0   r1   r2   rA   )r   r   rP   re   r   r   rH   r   s      r$   re   MessageContext.fetch_asyncP  s      ))B-.11dii 2 
 
 MM}5}5u%
 	
	
s   ABB	ABr<   r5   r7   r8   r9   rg   c           	         [         R                  " UU[        R                  " U5      [        R                  " U5      UUS.5      n[         R                  " 0 5      n	U[         R                  L d   [        U[        5      (       a  U(       a  XS'   SU	S'   SU	S'   U R                  R                  SU R                  XS9n
[        U R                  U
U R                  S	   U R                  S
   U R                  S   S9$ )ri   Body
AttributesDateCreatedDateUpdatedLastUpdatedByFromr   !application/x-www-form-urlencodedContent-Typer   r   POSTr   r   datar   r0   r1   r2   rA   )r   r   r   rE   r   
isinstancer   rP   rk   r   r   rH   rJ   rT   r<   r5   r7   r8   r9   rg   r   r   r/   s              r$   rk   MessageContext.updateh  s    4 yy((99,G(99,G!0	
 ))B- %43S990 3K./"E.--&&tyyt ' 
 MM}5}5u%
 	
r#   c           	        #    [         R                  " UU[        R                  " U5      [        R                  " U5      UUS.5      n[         R                  " 0 5      n	U[         R                  L d   [        U[        5      (       a  U(       a  XS'   SU	S'   SU	S'   U R                  R                  SU R                  XS9I S	h  vN n
[        U R                  U
U R                  S
   U R                  S   U R                  S   S9$  NB7f)ro   r   r   r   r   r   r   r   r   Nr0   r1   r2   rA   )r   r   r   rE   r   r   r   rP   rp   r   r   rH   r   s              r$   rp   MessageContext.update_async  s     4 yy((99,G(99,G!0	
 ))B- %43S990 3K./"E.22tyyt 3 
 
 MM}5}5u%
 	
	
s   CDDADc                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )rs   rt   c              3   H   #    U  H  u  pS R                  X5      v   M     g7frv   rw   ry   s      r$   r}   *MessageContext.__repr__.<locals>.<genexpr>  r   r   z"<Twilio.Chat.V2.MessageContext {}>r   r   s     r$   r   MessageContext.__repr__  s6     ((SDNN<P<P<RSS3::7CCr#   rH   r   )r   r   r   r   r   r   rC   r   r   r   r   r   rX   r]   r   ra   re   r   rk   rp   r   r"   r   r   s   @r$   rO   rO      sF   
 
c 
 
RU 
6 LL	U"'0&8#
U
 
U6 LL	
"'0&8#


 

2
 
,
? 
8 LL#)<<)/0606.4ll$*LL=
"'0&8#
=

 CK =
 #v+&=
 Hf,-=
 Hf,-=
 sF{+=
 S&[!=
 
=
F LL#)<<)/0606.4ll$*LL=
"'0&8#
=

 CK =
 #v+&=
 Hf,-=
 Hf,-=
 sF{+=
 S&[!=
 
=
~D# D Dr#   rO   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)MessagePagei  r/   rM   c                 b    [        U R                  UU R                  S   U R                  S   S9$ )zU
Build an instance of MessageInstance

:param payload: Payload response from the API
r0   r1   r0   r1   )r   rP   rH   )rJ   r/   s     r$   get_instanceMessagePage.get_instance  s3     MM}5}5	
 	
r#   c                     g)rs   z<Twilio.Chat.V2.MessagePage>r   rQ   s    r$   r   MessagePage.__repr__       .r#   r   N)r   r   r   r   r   r   r   r   r   r   r"   r   r#   r$   r   r     s)    
DcN 
 
.# .r#   r   c                     ^  \ rS rSrS\S\S\4U 4S jjr\R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  4S\	S\
4   S\	\\
4   S	\	\\
4   S
\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\4S jjr\R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  4S\	S\
4   S\	\\
4   S	\	\\
4   S
\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\4S jjr\R                  SS4S\	S\
4   S\\   S\\   S\\   4S jjr\R                  SS4S\	S\
4   S\\   S\\   S\\   4S jjr\R                  SS4S\	S\
4   S\\   S\\   S\\   4S jjr\R                  SS4S\	S\
4   S\\   S\\   S\\   4S jjr\R                  \R                  \R                  \R                  4S\	S\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\4
S jjr\R                  \R                  \R                  \R                  4S\	S\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\4
S jjrS\S\4S  jrS\S\4S! jrS"\S\4S# jrS"\S\4S$ jrS\4S% jr S&r!U =r"$ )'MessageListi  r.   r0   r1   c                 z   > [         TU ]  U5        UUS.U l        SR                  " S0 U R                  D6U l        g)a  
Initialize the MessageList

:param version: Version that contains the resource
:param service_sid: The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Message resources from.
:param channel_sid: The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Message resource to read belongs to. This value can be the Channel resource's `sid` or `unique_name`.

r   z7/Services/{service_sid}/Channels/{channel_sid}/MessagesNr   r   )rJ   r.   r0   r1   rK   s       r$   rC   MessageList.__init__
  sD     	! '&
 NTT 
nn
	r#   rT   r'   rg   r5   r7   r8   r9   r<   	media_sidrM   c	           
      ~   [         R                  " UU[        R                  " U5      [        R                  " U5      UUUS.5      n	[         R                  " USS.5      n
SU
S'   SU
S'   U R                  R                  SU R                  XS9n[        U R                  UU R                  S	   U R                  S
   S9$ )a  
Create the MessageInstance

:param x_twilio_webhook_enabled: The X-Twilio-Webhook-Enabled HTTP request header
:param from_: The [Identity](https://www.twilio.com/docs/chat/identity) of the new message's author. The default value is `system`.
:param attributes: A valid JSON string that contains application-specific data.
:param date_created: The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. This parameter should only be used when a Chat's history is being recreated from a backup/separate source.
:param date_updated: The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated.
:param last_updated_by: The [Identity](https://www.twilio.com/docs/chat/identity) of the User who last updated the Message, if applicable.
:param body: The message to send to the channel. Can 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 media_sid: The SID of the [Media](https://www.twilio.com/docs/chat/rest/media) to attach to the new Message.

:returns: The created MessageInstance
r   r   r   r   r   r   MediaSidr   r   r   r   r   r   r   r   r0   r1   r   )	r   r   r   rE   rP   creater   r   rH   rJ   rT   rg   r5   r7   r8   r9   r<   r   r   r   r/   s               r$   r   MessageList.create  s    8 yy((99,G(99,G!0%

 )),D C
 #F.--&&tyyt ' 
 MM}5}5	
 	
r#   c	           
        #    [         R                  " UU[        R                  " U5      [        R                  " U5      UUUS.5      n	[         R                  " USS.5      n
SU
S'   SU
S'   U R                  R                  SU R                  XS9I S	h  vN n[        U R                  UU R                  S
   U R                  S   S9$  N47f)a%  
Asynchronously create the MessageInstance

:param x_twilio_webhook_enabled: The X-Twilio-Webhook-Enabled HTTP request header
:param from_: The [Identity](https://www.twilio.com/docs/chat/identity) of the new message's author. The default value is `system`.
:param attributes: A valid JSON string that contains application-specific data.
:param date_created: The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. This parameter should only be used when a Chat's history is being recreated from a backup/separate source.
:param date_updated: The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated.
:param last_updated_by: The [Identity](https://www.twilio.com/docs/chat/identity) of the User who last updated the Message, if applicable.
:param body: The message to send to the channel. Can 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 media_sid: The SID of the [Media](https://www.twilio.com/docs/chat/rest/media) to attach to the new Message.

:returns: The created MessageInstance
r   r   r   r   r   r   r   r   Nr0   r1   r   )	r   r   r   rE   rP   create_asyncr   r   rH   r   s               r$   r   MessageList.create_async[  s     8 yy((99,G(99,G!0%

 )),D C
 #F.22tyyt 3 
 
 MM}5}5	
 	
	
s   BCC	5CNorderr   limit	page_sizec                     U R                   R                  X#5      nU R                  XS   S9nU R                   R                  XTS   5      $ )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   )rP   read_limitspagestreamrJ   r   r   r   limitsr   s         r$   r   MessageList.stream  sF    , **5<yyu{0CyD}}##D/::r#   c                    #    U R                   R                  X#5      nU R                  XS   S9I Sh  vN nU R                   R                  XTS   5      $  N"7f)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   )rP   r   
page_asyncstream_asyncr   s         r$   r   MessageList.stream_async  sR     , **5<__5;<O_PP}}))$w@@ Qs   1AA#Ac                 6    [        U R                  UUUS95      $ )aK  
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   )rJ   r   r   r   s       r$   r   MessageList.list  s+    * KK#  
 	
r#   c                 x   #    U R                  UUUS9I Sh  vN  Vs/ s Sh  vN nUPM   N N

 sn$ s  snf 7f)aZ  
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   )rJ   r   r   r   records        r$   
list_asyncMessageList.list_async  sT     . '+&7&7# '8 ' ! !
 
 !
 	
 
s0   :-:51/
15:15:
page_tokenpage_numberc                     [         R                  " UUUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XVS9n[        U R                  XpR                  5      $ )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   r   r   paramsr   )r   r   rP   r   r   r   rH   rJ   r   r   r   r   r   r   responses           r$   r   MessageList.page	  s~    $ yy'#%	
 ))^-PQR.==%%dii & 
 4==(NNCCr#   c                   #    [         R                  " UUUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XVS9I Sh  vN n[        U R                  XpR                  5      $  N$7f)	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   rP   r   r   r   rH   r   s           r$   r   MessageList.page_async-  s     $ yy'#%	
 ))^-PQR.11dii 2 
 
 4==(NNCC
s   A!B
#B$%B

target_urlc                     U R                   R                  R                  R                  SU5      n[	        U R                   X R
                  5      $ )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   )rP   domaintwiliorequestr   rH   rJ   r   r   s      r$   get_pageMessageList.get_pageQ  s;     ==''..66ujI4==(NNCCr#   c                    #    U R                   R                  R                  R                  SU5      I Sh  vN n[	        U R                   X R
                  5      $  N$7f)z
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)rP   r   r   request_asyncr   rH   r  s      r$   get_page_asyncMessageList.get_page_async]  sG      --44BB5*UU4==(NNCC Vs   4AA%Ar2   c                 b    [        U R                  U R                  S   U R                  S   US9$ zU
Constructs a MessageContext

:param sid: The SID of the Message resource to update.
r0   r1   rA   rO   rP   rH   rJ   r2   s     r$   rD   MessageList.geti  3     MM}5}5	
 	
r#   c                 b    [        U R                  U R                  S   U R                  S   US9$ r
  r  r  s     r$   __call__MessageList.__call__v  r  r#   c                     g)rs   z<Twilio.Chat.V2.MessageList>r   rQ   s    r$   r   MessageList.__repr__  r   r#   r   )#r   r   r   r   r   r   rC   r   r   r   r   r   r   r   r   r   intr	   r   r
   r   r   r   r   r   r   r   r  r  rO   rD   r  r   r"   r   r   s   @r$   r   r     s   
 
c 
 
0 LL$*LL)/0606.4ll#)<<(.;
"'0&8#
;

 S&[!;
 #v+&;
 Hf,-;
 Hf,-;
 sF{+;
 CK ;
 f%;
 
;
B LL$*LL)/0606.4ll#)<<(.;
"'0&8#
;

 S&[!;
 #v+&;
 Hf,-;
 Hf,-;
 sF{+;
 CK ;
 f%;
 
;
~ =CLL##'	;0&89; }; C=	;
 
/	";: =CLL##'	A0&89A }A C=	A
 
	'A: =CLL##'	
0&89
 }
 C=	

 
o	
> =CLL##'	
0&89
 }
 C=	

 
o	
@ =CLL)/*0,,(."D0&89"D #v+&"D 3;'	"D
 f%"D 
"DL =CLL)/*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   r   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   rO   r   r   r   r#   r$   <module>r     sj     L L L 6 6 8 : 2 ' !UE& UEp|D_ |D~.$ .0A., A.r#   