Ë
    [üàgâ*  ã                   óª   — d Z ddlmZmZmZmZmZmZmZ ddl	m
Z
 ddlmZ ddlmZ ddlmZ ddlmZ  G d„ d	e«      Z G d
„ de«      Z G d„ de«      Zy)aæ  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Api
    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.
é    )ÚAnyÚDictÚListÚOptionalÚUnionÚIteratorÚAsyncIterator)Úvalues)ÚInstanceResource)ÚListResource)ÚVersion)ÚPagec                   óJ   ‡ — e Zd ZdZdedeeef   dedefˆ fd„Zdefd„Z	ˆ xZ
S )	ÚEventInstancezÃ
    :ivar request: Contains a dictionary representing the request of the call.
    :ivar response: Contains a dictionary representing the call response, including a list of the call events.
    ÚversionÚpayloadÚaccount_sidÚcall_sidc                 ó�   •— t         ‰| �  |«       |j                  d«      | _        |j                  d«      | _        ||dœ| _        y )NÚrequestÚresponse©r   r   )ÚsuperÚ__init__Úgetr   r   Ú	_solution)Úselfr   r   r   r   Ú	__class__s        €úf/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/api/v2010/account/call/event.pyr   zEventInstance.__init__   sC   ø€ ô 	‰Ñ˜Ô!à4;·K±KÀ	Ó4JˆŒØ5<·[±[ÀÓ5LˆŒð 'Ø ñ
ˆ�ó    Ú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)EventInstance.__repr__.<locals>.<genexpr>1   s   è ø€ ÒS±D°A°q˜7Ÿ>™>¨!¨Q×/ÑSùs   ‚!z#<Twilio.Api.V2010.EventInstance {}>)Újoinr   Úitemsr&   )r   Úcontexts     r   Ú__repr__zEventInstance.__repr__+   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ4×;Ñ;¸GÓDÐDr    )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Ústrr   r   r.   Ú__classcell__©r   s   @r   r   r      sC   ø„ ñð

Øð
Ø)-¨c°3¨h©ð
ØFIð
ØUXõ
ðE˜#÷ Er    r   c                   ó2   — e Zd Zdeeef   defd„Zdefd„Zy)Ú	EventPager   r!   c                 óh   — t        | j                  || j                  d   | j                  d   ¬«      S )zk
        Build an instance of EventInstance

        :param payload: Payload response from the API
        r   r   r   )r   Ú_versionr   )r   r   s     r   Úget_instancezEventPage.get_instance7   s3   € ô Ø�M‰MØØŸ™ }Ñ5Ø—^‘^ JÑ/ô	
ð 	
r    c                  ó   — y)r#   z<Twilio.Api.V2010.EventPage>© ©r   s    r   r.   zEventPage.__repr__D   ó   € ð .r    N)	r/   r0   r1   r   r3   r   r   r:   r.   r<   r    r   r7   r7   5   s)   „ ð
 D¨¨c¨¡Nð 
°}ó 
ð.˜#ô .r    r7   c            	       óü  ‡ — e Zd Zdededefˆ fd„Z	 	 ddee   dee   dee	   fd„Z
	 	 ddee   dee   dee	   fd	„Z	 	 ddee   dee   dee	   fd
„Z	 	 ddee   dee   dee	   fd„Zej"                  ej"                  ej"                  fdeeef   deeef   deeef   defd„Zej"                  ej"                  ej"                  fdeeef   deeef   deeef   defd„Zdedefd„Zdedefd„Zdefd„Zˆ xZS )Ú	EventListr   r   r   c                 óz   •— t         ‰| �  |«       ||dœ| _         dj                  di | j                  ¤Ž| _        y)zí
        Initialize the EventList

        :param version: Version that contains the resource
        :param account_sid: The unique SID identifier of the Account.
        :param call_sid: The unique SID identifier of the Call.

        r   z4/Accounts/{account_sid}/Calls/{call_sid}/Events.jsonNr<   )r   r   r   r&   Ú_uri)r   r   r   r   r   s       €r   r   zEventList.__init__O   sG   ø€ ô 	‰Ñ˜Ô!ð 'Ø ñ
ˆŒð RÐJ×QÑQñ 
Ø�n‰nñ
ˆ�	r    ÚlimitÚ	page_sizer!   c                 ó¢   — | j                   j                  ||«      }| j                  |d   ¬«      }| j                   j                  ||d   «      S )a[  
        Streams EventInstance records from the API as a generator stream.
        This operation lazily loads records as efficiently as possible until the limit
        is reached.
        The results are returned as a generator, so this operation is memory efficient.

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

        :returns: Generator that will yield up to limit results
        rD   ©rD   rC   )r9   Úread_limitsÚpageÚstream©r   rC   rD   ÚlimitsrH   s        r   rI   zEventList.streamc   sJ   € ð( —‘×*Ñ*¨5°)Ó<ˆØ�y‰y 6¨+Ñ#6ˆyÓ7ˆà�}‰}×#Ñ# D¨&°©/Ó:Ð:r    c              ƒ   ó¾   K  — | j                   j                  ||«      }| j                  |d   ¬«      ƒ d{  –—† }| j                   j                  ||d   «      S 7 Œ#­w)aj  
        Asynchronously streams EventInstance records from the API as a generator stream.
        This operation lazily loads records as efficiently as possible until the limit
        is reached.
        The results are returned as a generator, so this operation is memory efficient.

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

        :returns: Generator that will yield up to limit results
        rD   rF   NrC   )r9   rG   Ú
page_asyncÚstream_asyncrJ   s        r   rN   zEventList.stream_async|   sW   è ø€ ð( —‘×*Ñ*¨5°)Ó<ˆØ—_‘_¨v°kÑ/B�_ÓC×Cˆà�}‰}×)Ñ)¨$°°w±Ó@Ð@ð Dús   ‚5A·A¸$Ac                 ó:   — t        | j                  ||¬«      «      S )aø  
        Lists EventInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

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

        :returns: list that will contain up to limit results
        ©rC   rD   )ÚlistrI   )r   rC   rD   s      r   rQ   zEventList.list•   s(   € ô& Ø�K‰KØØ#ð ó ó
ð 	
r    c              ƒ   óz   K  — | j                  ||¬«      ƒ d{  –—† 2 �cg c3 d{  –—† }|‘Œ7 Œ7 Œ	6 c}S c c}w ­w)a  
        Asynchronously lists EventInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

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

        :returns: list that will contain up to limit results
        rP   N)rN   )r   rC   rD   Úrecords       r   Ú
list_asynczEventList.list_async¯   sT   è ø€ ð* '+×&7Ñ&7ØØ#ð '8ó '÷ !÷
ô 
àò ð!øð
øò 
ð 	
ùò 
ùs0   ‚;™.š; 6¢2¦0
§2ª6®;°2²6³;Ú
page_tokenÚpage_numberc                 ó   — t        j                  |||dœ«      }t        j                  ddi«      }d|d<   | j                  j                  d| j                  ||¬«      }t        | j                  || j                  «      S )ao  
        Retrieve a single page of EventInstance records from the API.
        Request is executed immediately

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

        :returns: Page of EventInstance
        ©Ú	PageTokenr   ÚPageSizeúContent-Typeú!application/x-www-form-urlencodedúapplication/jsonÚAcceptÚGET©ÚmethodÚuriÚparamsÚheaders)r
   Úofr9   rH   rB   r7   r   ©r   rU   rV   rD   Údatard   r   s          r   rH   zEventList.pageÊ   s   € ô  �y‰yà'Ø#Ø%ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�Ñà—=‘=×%Ñ%Ø˜dŸi™i°¸gð &ó 
ˆô ˜Ÿ™¨°$·.±.ÓAÐAr    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 EventInstance records from the API.
        Request is executed immediately

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

        :returns: Page of EventInstance
        rX   r[   r\   r]   r^   r_   r`   N)r
   re   r9   rM   rB   r7   r   rf   s          r   rM   zEventList.page_asyncë   s�   è ø€ ô  �y‰yà'Ø#Ø%ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°¸gð 2ó 
÷ 
ˆô ˜Ÿ™¨°$·.±.ÓAÐAð
ús   ‚A"BÁ$B
Á%&BÚ
target_urlc                 ó¤   — | j                   j                  j                  j                  d|«      }t	        | j                   || j
                  «      S )zï
        Retrieve a specific page of EventInstance records from the API.
        Request is executed immediately

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

        :returns: Page of EventInstance
        r_   )r9   ÚdomainÚtwilior   r7   r   ©r   ri   r   s      r   Úget_pagezEventList.get_page  s=   € ð —=‘=×'Ñ'×.Ñ.×6Ñ6°u¸jÓIˆÜ˜Ÿ™¨°$·.±.ÓAÐAr    c              ƒ   óÀ   K  — | j                   j                  j                  j                  d|«      ƒ d{  –—† }t	        | j                   || j
                  «      S 7 Œ%­w)zþ
        Asynchronously retrieve a specific page of EventInstance records from the API.
        Request is executed immediately

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

        :returns: Page of EventInstance
        r_   N)r9   rk   rl   Úrequest_asyncr7   r   rm   s      r   Úget_page_asynczEventList.get_page_async  sJ   è ø€ ð Ÿ™×-Ñ-×4Ñ4×BÑBÀ5È*ÓU×UˆÜ˜Ÿ™¨°$·.±.ÓAÐAð Vús   ‚4A¶A·&Ac                  ó   — y)r#   z<Twilio.Api.V2010.EventList>r<   r=   s    r   r.   zEventList.__repr__$  r>   r    )NN)r/   r0   r1   r   r3   r   r   Úintr   r   rI   r	   rN   r   rQ   rT   r
   Úunsetr   Úobjectr7   rH   rM   rn   rq   r.   r4   r5   s   @r   r@   r@   M   s÷  ø„ ð
 ð 
°cð 
ÀSõ 
ð,  $Ø#'ñ;à˜‰}ð;ð ˜C‘=ð;ð 
�-Ñ	 ó	;ð6  $Ø#'ñAà˜‰}ðAð ˜C‘=ðAð 
�}Ñ	%ó	Að6  $Ø#'ñ
à˜‰}ð
ð ˜C‘=ð
ð 
ˆmÑ	ó	
ð8  $Ø#'ñ
à˜‰}ð
ð ˜C‘=ð
ð 
ˆmÑ	ó	
ð: *0¯©Ø*0¯,©,Ø(.¯©ñ	Bà˜#˜v˜+Ñ&ðBð ˜3 ˜;Ñ'ðBð ˜˜f˜Ñ%ð	Bð
 
óBðF *0¯©Ø*0¯,©,Ø(.¯©ñ	Bà˜#˜v˜+Ñ&ðBð ˜3 ˜;Ñ'ðBð ˜˜f˜Ñ%ð	Bð
 
óBðB
B 3ð 
B¨9ó 
Bð
B¨sð 
B°yó 
Bð.˜#÷ .r    r@   N)r2   Útypingr   r   r   r   r   r   r	   Útwilio.baser
   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer   Útwilio.base.versionr   Útwilio.base.pager   r   r7   r@   r<   r    r   ú<module>r|      sN   ðñ÷ M× LÑ LÝ å :Ý 2Ý 'Ý !ôEÐ$ô Eô:.�ô .ô0].�õ ].r    