Ë
    [üàg¥c  ã                   ó¢   — d Z ddl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.
é    )ÚAnyÚDictÚOptionalÚUnion)Ú	serializeÚvalues)ÚInstanceContext)ÚInstanceResource)ÚListResource)ÚVersionc                   ó,  ‡ — e Zd ZdZdedeeef   defˆ fd„Ze	dd„«       Z
dd„Zdd	„Zej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  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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eef   deeef   deeef   dd fd„Zej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  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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eef   deeef   deeef   dd fd„Zdefd„Zˆ xZS )ÚNotificationInstanceaÙ  
    :ivar account_sid: The unique ID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this configuration.
    :ivar chat_service_sid: The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Configuration applies to.
    :ivar new_message: The Push Notification configuration for New Messages.
    :ivar added_to_conversation: The Push Notification configuration for being added to a Conversation.
    :ivar removed_from_conversation: The Push Notification configuration for being removed from a Conversation.
    :ivar log_enabled: Weather the notification logging is enabled.
    :ivar url: An absolute API resource URL for this configuration.
    ÚversionÚpayloadÚchat_service_sidc                 óx  •— t         ‰| �  |«       |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _	        d|i| _
        d | _        y )NÚaccount_sidr   Únew_messageÚadded_to_conversationÚremoved_from_conversationÚlog_enabledÚurl)ÚsuperÚ__init__Úgetr   r   r   r   r   r   r   Ú	_solutionÚ_context)Úselfr   r   r   Ú	__class__s       €ú}/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/conversations/v1/service/configuration/notification.pyr   zNotificationInstance.__init__"   s±   ø€ ô 	‰Ñ˜Ô!à*1¯+©+°mÓ*DˆÔØ/6¯{©{Ð;MÓ/NˆÔØ8?¿¹ÀMÓ8RˆÔØBIÇ+Á+Ø#óC
ˆÔ"ð GNÇkÁkØ'óG
ˆÔ&ð ,3¯;©;°}Ó+EˆÔØ")§+¡+¨eÓ"4ˆŒð Ð 0ð
ˆŒð 8<ˆ�ó    Úreturnc                 ó„   — | j                   €)t        | j                  | 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: NotificationContext for this NotificationInstance
        r   ©r   )r   ÚNotificationContextÚ_versionr   ©r   s    r    Ú_proxyzNotificationInstance._proxy8   s:   € ð �=‰=Ð Ü/Ø—‘Ø!%§¡Ð0BÑ!CôˆDŒMð �}‰}Ðr!   c                 ó6   — | j                   j                  «       S )úe
        Fetch the NotificationInstance


        :returns: The fetched NotificationInstance
        )r(   Úfetchr'   s    r    r+   zNotificationInstance.fetchG   s   € ð �{‰{× Ñ Ó"Ð"r!   c              ƒ   óR   K  — | j                   j                  «       ƒ d{  –—† S 7 Œ­w)ú
        Asynchronous coroutine to fetch the NotificationInstance


        :returns: The fetched NotificationInstance
        N)r(   Úfetch_asyncr'   s    r    r.   z NotificationInstance.fetch_asyncP   s!   è ø€ ð —[‘[×,Ñ,Ó.×.Ð.Ð.ús   ‚' %¡'r   Únew_message_enabledÚnew_message_templateÚnew_message_soundÚnew_message_badge_count_enabledÚadded_to_conversation_enabledÚadded_to_conversation_templateÚadded_to_conversation_soundÚ!removed_from_conversation_enabledÚ"removed_from_conversation_templateÚremoved_from_conversation_soundÚnew_message_with_media_enabledÚnew_message_with_media_templatec                 óR   — | j                   j                  |||||||||	|
|||¬«      S )á¾  
        Update the NotificationInstance

        :param log_enabled: Weather the notification logging is enabled.
        :param new_message_enabled: Whether to send a notification when a new message is added to a conversation. The default is `false`.
        :param new_message_template: The template to use to create the notification text displayed when a new message is added to a conversation and `new_message.enabled` is `true`.
        :param new_message_sound: The name of the sound to play when a new message is added to a conversation and `new_message.enabled` is `true`.
        :param new_message_badge_count_enabled: Whether the new message badge is enabled. The default is `false`.
        :param added_to_conversation_enabled: Whether to send a notification when a participant is added to a conversation. The default is `false`.
        :param added_to_conversation_template: The template to use to create the notification text displayed when a participant is added to a conversation and `added_to_conversation.enabled` is `true`.
        :param added_to_conversation_sound: The name of the sound to play when a participant is added to a conversation and `added_to_conversation.enabled` is `true`.
        :param removed_from_conversation_enabled: Whether to send a notification to a user when they are removed from a conversation. The default is `false`.
        :param removed_from_conversation_template: The template to use to create the notification text displayed to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`.
        :param removed_from_conversation_sound: The name of the sound to play to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`.
        :param new_message_with_media_enabled: Whether to send a notification when a new message with media/file attachments is added to a conversation. The default is `false`.
        :param new_message_with_media_template: The template to use to create the notification text displayed when a new message with media/file attachments is added to a conversation and `new_message.attachments.enabled` is `true`.

        :returns: The updated NotificationInstance
        ©r   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   )r(   Úupdate©r   r   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   s                 r    r>   zNotificationInstance.updateY   sH   € ðF �{‰{×!Ñ!Ø#Ø 3Ø!5Ø/Ø,KØ*GØ+IØ(CØ.OØ/QØ,KØ+IØ,Kð "ó 
ð 	
r!   c              ƒ   ón   K  — | j                   j                  |||||||||	|
|||¬«      ƒ d{  –—† S 7 Œ­w)áØ  
        Asynchronous coroutine to update the NotificationInstance

        :param log_enabled: Weather the notification logging is enabled.
        :param new_message_enabled: Whether to send a notification when a new message is added to a conversation. The default is `false`.
        :param new_message_template: The template to use to create the notification text displayed when a new message is added to a conversation and `new_message.enabled` is `true`.
        :param new_message_sound: The name of the sound to play when a new message is added to a conversation and `new_message.enabled` is `true`.
        :param new_message_badge_count_enabled: Whether the new message badge is enabled. The default is `false`.
        :param added_to_conversation_enabled: Whether to send a notification when a participant is added to a conversation. The default is `false`.
        :param added_to_conversation_template: The template to use to create the notification text displayed when a participant is added to a conversation and `added_to_conversation.enabled` is `true`.
        :param added_to_conversation_sound: The name of the sound to play when a participant is added to a conversation and `added_to_conversation.enabled` is `true`.
        :param removed_from_conversation_enabled: Whether to send a notification to a user when they are removed from a conversation. The default is `false`.
        :param removed_from_conversation_template: The template to use to create the notification text displayed to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`.
        :param removed_from_conversation_sound: The name of the sound to play to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`.
        :param new_message_with_media_enabled: Whether to send a notification when a new message with media/file attachments is added to a conversation. The default is `false`.
        :param new_message_with_media_template: The template to use to create the notification text displayed when a new message with media/file attachments is added to a conversation and `new_message.attachments.enabled` is `true`.

        :returns: The updated NotificationInstance
        r=   N)r(   Úupdate_asyncr?   s                 r    rB   z!NotificationInstance.update_asyncŒ   sV   è ø€ ðF —[‘[×-Ñ-Ø#Ø 3Ø!5Ø/Ø,KØ*GØ+IØ(CØ.OØ/QØ,KØ+IØ,Kð .ó 
÷ 
ð 	
ð 
ús   ‚,5®3¯5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>z0NotificationInstance.__repr__.<locals>.<genexpr>Å   ó   è ø€ ÒS±D°A°q˜7Ÿ>™>¨!¨Q×/ÑSùó   ‚!z1<Twilio.Conversations.V1.NotificationInstance {}>©Újoinr   ÚitemsrI   ©r   Úcontexts     r    Ú__repr__zNotificationInstance.__repr__¿   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØB×IÑIÈ'ÓRÐRr!   )r"   r%   )r"   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Ústrr   r   Úpropertyr(   r+   r.   r   Úunsetr   ÚboolÚobjectr>   rB   rV   Ú__classcell__©r   s   @r    r   r      s  ø„ ñð<Øð<Ø)-¨c°3¨h©ð<ØKNõ<ð, òó ðó#ó/ð ,2¯<©<Ø39·<±<Ø39·<±<Ø06·±Ø?E¿|¹|Ø=C¿\¹\Ø=C¿\¹\Ø:@¿,¹,ØAGÇÁØAGÇÁØ>D¿l¹lØ>D¿l¹lØ>D¿l¹lñ1
à˜4 ˜<Ñ(ð1
ð # 4¨ <Ñ0ð1
ð $ C¨ KÑ0ð	1
ð
 !  f Ñ-ð1
ð */¨t°V¨|Ñ)<ð1
ð (-¨T°6¨\Ñ':ð1
ð ).¨c°6¨kÑ(:ð1
ð &+¨3°¨;Ñ%7ð1
ð ,1°°v°Ñ+>ð1
ð -2°#°v°+Ñ,>ð1
ð */¨s°F¨{Ñ);ð1
ð ).¨d°F¨lÑ(;ð1
ð */¨s°F¨{Ñ);ð1
ð 
 ó1
ðj ,2¯<©<Ø39·<±<Ø39·<±<Ø06·±Ø?E¿|¹|Ø=C¿\¹\Ø=C¿\¹\Ø:@¿,¹,ØAGÇÁØAGÇÁØ>D¿l¹lØ>D¿l¹lØ>D¿l¹lñ1
à˜4 ˜<Ñ(ð1
ð # 4¨ <Ñ0ð1
ð $ C¨ KÑ0ð	1
ð
 !  f Ñ-ð1
ð */¨t°V¨|Ñ)<ð1
ð (-¨T°6¨\Ñ':ð1
ð ).¨c°6¨kÑ(:ð1
ð &+¨3°¨;Ñ%7ð1
ð ,1°°v°Ñ+>ð1
ð -2°#°v°+Ñ,>ð1
ð */¨s°F¨{Ñ);ð1
ð ).¨d°F¨lÑ(;ð1
ð */¨s°F¨{Ñ);ð1
ð 
 ó1
ðfS˜#÷ Sr!   r   c                   ó  ‡ — e Zd Zdedefˆ fd„Zdefd„Zdefd„Ze	j                  e	j                  e	j                  e	j                  e	j                  e	j                  e	j                  e	j                  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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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                  e	j                  e	j                  e	j                  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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ee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   c                 óx   •— t         ‰| �  |«       d|i| _         dj                  di | j                  ¤Ž| _        y)a  
        Initialize the NotificationContext

        :param version: Version that contains the resource
        :param chat_service_sid: The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Configuration applies to.
        r   z8/Services/{chat_service_sid}/Configuration/NotificationsN© )r   r   r   rI   Ú_uri©r   r   r   r   s      €r    r   zNotificationContext.__init__Ë   sG   ø€ ô 	‰Ñ˜Ô!ð Ð 0ð
ˆŒð VÐN×UÑUñ 
Ø�n‰nñ
ˆ�	r!   r"   c                 óÐ   — t        j                  i «      }d|d<   | j                  j                  d| j                  |¬«      }t        | j                  || j                  d   ¬«      S )r*   úapplication/jsonÚAcceptÚGET©ÚmethodÚuriÚheadersr   r$   )r   Úofr&   r+   re   r   r   ©r   rn   r   s      r    r+   zNotificationContext.fetchÜ   s^   € ô —)‘)˜B“-ˆà.ˆ�Ñà—-‘-×%Ñ%¨U¸¿	¹	È7Ð%ÓSˆä#Ø�M‰MØØ!Ÿ^™^Ð,>Ñ?ô
ð 	
r!   c              ƒ   óì   K  — t        j                  i «      }d|d<   | j                  j                  d| j                  |¬«      ƒ d{  –—† }t        | j                  || j                  d   ¬«      S 7 Œ)­w)r-   rh   ri   rj   rk   Nr   r$   )r   ro   r&   r.   re   r   r   rp   s      r    r.   zNotificationContext.fetch_asyncð   ss   è ø€ ô —)‘)˜B“-ˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°ð 2ó 
÷ 
ˆô $Ø�M‰MØØ!Ÿ^™^Ð,>Ñ?ô
ð 	
ð	
ús   ‚AA4ÁA2Á	*A4r   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   c                 ó  — t        j                  t        j                  |«      t        j                  |«      ||t        j                  |«      t        j                  |«      ||t        j                  |	«      |
|t        j                  |«      |dœ«      }t        j                  i «      }d|d<   d|d<   | j                  j                  d| j                  ||¬«      }t        | j                  || j                  d   ¬	«      S )
r<   ©Ú
LogEnabledzNewMessage.EnabledzNewMessage.TemplatezNewMessage.SoundzNewMessage.BadgeCountEnabledzAddedToConversation.EnabledzAddedToConversation.TemplatezAddedToConversation.SoundzRemovedFromConversation.Enabledz RemovedFromConversation.TemplatezRemovedFromConversation.SoundzNewMessage.WithMedia.EnabledzNewMessage.WithMedia.Templateú!application/x-www-form-urlencodedúContent-Typerh   ri   ÚPOST©rl   rm   Údatarn   r   r$   )	r   ro   r   Úboolean_to_stringr&   r>   re   r   r   ©r   r   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   ry   rn   r   s                    r    r>   zNotificationContext.update  s  € ôH �y‰yä'×9Ñ9¸+ÓFÜ&/×&AÑ&AÐBUÓ&VØ';Ø$5Ü09×0KÑ0KØ3ó1ô 09×/JÑ/JØ1ó0ð 1OØ-HÜ3<×3NÑ3NØ5ó4ð 5WØ1PÜ09×0KÑ0KØ2ó1ð 2Qñ+ó
ˆô2 —)‘)˜B“-ˆà"Eˆ�Ñà.ˆ�Ñà—-‘-×&Ñ&Ø˜tŸy™y¨t¸Wð 'ó 
ˆô $Ø�M‰M˜7°T·^±^ÐDVÑ5Wô
ð 	
r!   c              ƒ   ó"  K  — t        j                  t        j                  |«      t        j                  |«      ||t        j                  |«      t        j                  |«      ||t        j                  |	«      |
|t        j                  |«      |dœ«      }t        j                  i «      }d|d<   d|d<   | j                  j                  d| j                  ||¬«      ƒ d{  –—† }t        | j                  || j                  d	   ¬
«      S 7 Œ)­w)rA   rs   ru   rv   rh   ri   rw   rx   Nr   r$   )	r   ro   r   rz   r&   rB   re   r   r   r{   s                    r    rB   z NotificationContext.update_asyncQ  s  è ø€ ôH �y‰yä'×9Ñ9¸+ÓFÜ&/×&AÑ&AÐBUÓ&VØ';Ø$5Ü09×0KÑ0KØ3ó1ô 09×/JÑ/JØ1ó0ð 1OØ-HÜ3<×3NÑ3NØ5ó4ð 5WØ1PÜ09×0KÑ0KØ2ó1ð 2Qñ+ó
ˆô2 —)‘)˜B“-ˆà"Eˆ�Ñà.ˆ�ÑàŸ™×2Ñ2Ø˜tŸy™y¨t¸Wð 3ó 
÷ 
ˆô $Ø�M‰M˜7°T·^±^ÐDVÑ5Wô
ð 	
ð	
ús   ‚C!DÃ#DÃ$*Dc                 ó„   — dj                  d„ | j                  j                  «       D «       «      }dj                  |«      S )rD   rE   c              3   óF   K  — | ]  \  }}d j                  ||«      –— Œ y­wrG   rH   rJ   s      r    rN   z/NotificationContext.__repr__.<locals>.<genexpr>¢  rO   rP   z0<Twilio.Conversations.V1.NotificationContext {}>rQ   rT   s     r    rV   zNotificationContext.__repr__œ  s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØA×HÑHÈÓQÐQr!   )rW   rX   rY   r   r[   r   r   r+   r.   r   r]   r   r^   r_   r>   rB   rV   r`   ra   s   @r    r%   r%   É   s   ø„ ð
 ð 
¸3õ 
ð"
Ð+ó 
ð(
Ð#7ó 
ð0 ,2¯<©<Ø39·<±<Ø39·<±<Ø06·±Ø?E¿|¹|Ø=C¿\¹\Ø=C¿\¹\Ø:@¿,¹,ØAGÇÁØAGÇÁØ>D¿l¹lØ>D¿l¹lØ>D¿l¹lñI
à˜4 ˜<Ñ(ðI
ð # 4¨ <Ñ0ðI
ð $ C¨ KÑ0ð	I
ð
 !  f Ñ-ðI
ð */¨t°V¨|Ñ)<ðI
ð (-¨T°6¨\Ñ':ðI
ð ).¨c°6¨kÑ(:ðI
ð &+¨3°¨;Ñ%7ðI
ð ,1°°v°Ñ+>ðI
ð -2°#°v°+Ñ,>ðI
ð */¨s°F¨{Ñ);ðI
ð ).¨d°F¨lÑ(;ðI
ð */¨s°F¨{Ñ);ðI
ð 
óI
ðZ ,2¯<©<Ø39·<±<Ø39·<±<Ø06·±Ø?E¿|¹|Ø=C¿\¹\Ø=C¿\¹\Ø:@¿,¹,ØAGÇÁØAGÇÁØ>D¿l¹lØ>D¿l¹lØ>D¿l¹lñI
à˜4 ˜<Ñ(ðI
ð # 4¨ <Ñ0ðI
ð $ C¨ KÑ0ð	I
ð
 !  f Ñ-ðI
ð */¨t°V¨|Ñ)<ðI
ð (-¨T°6¨\Ñ':ðI
ð ).¨c°6¨kÑ(:ðI
ð &+¨3°¨;Ñ%7ðI
ð ,1°°v°Ñ+>ðI
ð -2°#°v°+Ñ,>ðI
ð */¨s°F¨{Ñ);ðI
ð ).¨d°F¨lÑ(;ðI
ð */¨s°F¨{Ñ);ðI
ð 
óI
ðVR˜#÷ Rr!   r%   c                   óL   ‡ — e Zd Zdedefˆ fd„Zdefd„Zdefd„Zdefd„Z	ˆ xZ
S )ÚNotificationListr   r   c                 ó6   •— t         ‰| �  |«       d|i| _        y)a  
        Initialize the NotificationList

        :param version: Version that contains the resource
        :param chat_service_sid: The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Configuration applies to.

        r   N)r   r   r   rf   s      €r    r   zNotificationList.__init__¨  s#   ø€ ô 	‰Ñ˜Ô!ð Ð 0ð
ˆ�r!   r"   c                 óJ   — t        | j                  | j                  d   ¬«      S ©z3
        Constructs a NotificationContext

        r   r$   ©r%   r&   r   r'   s    r    r   zNotificationList.get·  ó$   € ô
 #Ø�M‰M¨D¯N©NÐ;MÑ,Nô
ð 	
r!   c                 óJ   — t        | j                  | j                  d   ¬«      S rƒ   r„   r'   s    r    Ú__call__zNotificationList.__call__À  r…   r!   c                  ó   — y)rD   z*<Twilio.Conversations.V1.NotificationList>rd   r'   s    r    rV   zNotificationList.__repr__É  s   € ð <r!   )rW   rX   rY   r   r[   r   r%   r   r‡   rV   r`   ra   s   @r    r€   r€   ¦  s<   ø„ ð
 ð 
¸3õ 
ð
Ð(ó 
ð
Ð-ó 
ð<˜#÷ <r!   r€   N)rZ   Útypingr   r   r   r   Útwilio.baser   r   Útwilio.base.instance_contextr	   Útwilio.base.instance_resourcer
   Útwilio.base.list_resourcer   Útwilio.base.versionr   r   r%   r€   rd   r!   r    ú<module>r�      sP   ðñ÷ .Ó -ß )Ý 8Ý :Ý 2Ý 'ôoSÐ+ô oSôdZR˜/ô ZRôz)<�|õ )<r!   