o
    �¨Êh�.  ã                   @   s€   d 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 ddl	m
Z
 G dd	„ d	eƒZG d
d„ de
ƒZG dd„ deƒZdS )za
This code was generated by
\ / _    _  _|   _  _
 | (_)\/(_)(_|\/| |(/_  v1.0.0
      /       /
é    )Údeserialize)Ú	serialize)Úvalues)ÚInstanceResource)ÚListResource)ÚPagec                       sv   e Zd ZdZ‡ f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ejejejejfdd„Zdd„ Z‡  Z	S )ÚNotificationListúk PLEASE NOTE that this class contains beta products that are subject to
    change. Use them with caution. c                    s2   t t| ƒ |¡ d|i| _djdi | j¤Ž| _dS )a<  
        Initialize the NotificationList

        :param Version version: Version that contains the resource
        :param service_sid: The service_sid

        :returns: twilio.rest.notify.v1.service.notification.NotificationList
        :rtype: twilio.rest.notify.v1.service.notification.NotificationList
        Úservice_sidz%/Services/{service_sid}/NotificationsN© )Úsuperr   Ú__init__Ú	_solutionÚformatÚ_uri)ÚselfÚversionr
   ©Ú	__class__r   ú\/var/www/html/env/lib/python3.10/site-packages/twilio/rest/notify/v1/service/notification.pyr      s   

zNotificationList.__init__c              	   C   sô   t  i dt |dd„ ¡“dt |dd„ ¡“d|“d|“d|“d	|“d
|“d|“dt |¡“dt |¡“dt |	¡“dt |
¡“dt |¡“dt |¡“dt |dd„ ¡“dt |¡“dt |dd„ ¡“¡}| jjd| j|d�}t| j|| j	d d�S )aZ  
        Create a new NotificationInstance

        :param unicode body: Indicates the notification body text.
        :param NotificationInstance.Priority priority: Two priorities defined: low and high.
        :param unicode ttl: This parameter specifies how long the notification is valid.
        :param unicode title: Indicates the notification title.
        :param unicode sound: Indicates a sound to be played.
        :param unicode action: Specifies the actions to be displayed for the notification.
        :param dict data: This parameter specifies the custom key-value pairs of the notification's payload.
        :param dict apn: APNS specific payload that overrides corresponding attributes in a generic payload for Bindings with the apn BindingType.
        :param dict gcm: GCM specific payload that overrides corresponding attributes in generic payload for Bindings with gcm BindingType.
        :param dict sms: SMS specific payload that overrides corresponding attributes in generic payload for Bindings with sms BindingType.
        :param dict facebook_messenger: Messenger specific payload that overrides corresponding attributes in generic payload for Bindings with facebook-messenger BindingType.
        :param dict fcm: FCM specific payload that overrides corresponding attributes in generic payload for Bindings with fcm BindingType.
        :param unicode segment: The segment
        :param dict alexa: The alexa
        :param unicode to_binding: The destination address in a JSON object.
        :param unicode identity: Delivery will be attempted only to Bindings with an Identity in this list.
        :param unicode tag: Delivery will be attempted only to Bindings that have all of the Tags in this list.

        :returns: Newly created NotificationInstance
        :rtype: twilio.rest.notify.v1.service.notification.NotificationInstance
        ÚIdentityc                 S   ó   | S ©Nr   ©Úer   r   r   Ú<lambda>D   ó    z)NotificationList.create.<locals>.<lambda>ÚTagc                 S   r   r   r   r   r   r   r   r   E   r   ÚBodyÚPriorityÚTtlÚTitleÚSoundÚActionÚDataÚApnÚGcmÚSmsÚFacebookMessengerÚFcmÚSegmentc                 S   r   r   r   r   r   r   r   r   R   r   ÚAlexaÚ	ToBindingc                 S   r   r   r   r   r   r   r   r   T   r   ÚPOST)Údatar
   ©r
   )
r   Úofr   ÚmapÚobjectÚ_versionÚcreater   ÚNotificationInstancer   )r   ÚbodyÚpriorityÚttlÚtitleÚsoundÚactionr.   ÚapnÚgcmÚsmsÚfacebook_messengerÚfcmÚsegmentÚalexaÚ
to_bindingÚidentityÚtagÚpayloadr   r   r   r4   %   sR   ÿþýüûúùø
	÷

ö
õ
ô
ó
òñ
ðïýzNotificationList.createc                 C   ó   dS )úz
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z#<Twilio.Notify.V1.NotificationList>r   ©r   r   r   r   Ú__repr___   ó   zNotificationList.__repr__)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Úunsetr4   rJ   Ú__classcell__r   r   r   r   r      s    
û:r   c                       s0   e Zd ZdZ‡ fdd„Zdd„ Zdd„ Z‡  ZS )ÚNotificationPager	   c                    s   t t| ƒ ||¡ || _dS )at  
        Initialize the NotificationPage

        :param Version version: Version that contains the resource
        :param Response response: Response from the API
        :param service_sid: The service_sid

        :returns: twilio.rest.notify.v1.service.notification.NotificationPage
        :rtype: twilio.rest.notify.v1.service.notification.NotificationPage
        N)r   rR   r   r   )r   r   ÚresponseÚsolutionr   r   r   r   m   s   
zNotificationPage.__init__c                 C   s   t | j|| jd d�S )a  
        Build an instance of NotificationInstance

        :param dict payload: Payload response from the API

        :returns: twilio.rest.notify.v1.service.notification.NotificationInstance
        :rtype: twilio.rest.notify.v1.service.notification.NotificationInstance
        r
   r/   )r5   r3   r   )r   rF   r   r   r   Úget_instance}   s   	zNotificationPage.get_instancec                 C   rG   )rH   z#<Twilio.Notify.V1.NotificationPage>r   rI   r   r   r   rJ   ˆ   rK   zNotificationPage.__repr__)rL   rM   rN   rO   r   rU   rJ   rQ   r   r   r   r   rR   i   s
    rR   c                       s(  e Zd ZdZG dd„ deƒZ‡ fdd„Zedd„ ƒZedd	„ ƒZ	ed
d„ ƒZ
edd„ ƒZedd„ ƒZedd„ ƒZedd„ ƒZedd„ ƒZedd„ ƒZedd„ ƒZedd„ ƒZedd„ ƒZedd„ ƒZed d!„ ƒZed"d#„ ƒZed$d%„ ƒZed&d'„ ƒZed(d)„ ƒZed*d+„ ƒZed,d-„ ƒZd.d/„ Z‡  ZS )0r5   r	   c                   @   s   e Zd ZdZdZdS )zNotificationInstance.PriorityÚhighÚlowN)rL   rM   rN   ÚHIGHÚLOWr   r   r   r   r   –   s    r   c                    sø   t t| ƒ |¡ i d|d “d|d “d|d “dt |d ¡“d|d “d|d “d|d “d|d “d	t |d	 ¡“d
|d
 “d|d “d|d “d|d “d|d “d|d “d|d “d|d “|d |d |d dœ¥| _d| _d|i| _dS )zØ
        Initialize the NotificationInstance

        :returns: twilio.rest.notify.v1.service.notification.NotificationInstance
        :rtype: twilio.rest.notify.v1.service.notification.NotificationInstance
        ÚsidÚaccount_sidr
   Údate_createdÚ
identitiesÚtagsÚsegmentsr7   r8   r9   r6   r:   r;   r.   r<   r=   r@   r>   r?   rB   )r>   r?   rB   N)	r   r5   r   r   Úiso8601_datetimeÚintegerÚ_propertiesÚ_contextr   )r   r   rF   r
   r   r   r   r   š   sT   ÿþýüûúùø	÷
öõôóòñðï
ìzNotificationInstance.__init__c                 C   ó
   | j d S )z;
        :returns: The sid
        :rtype: unicode
        rZ   ©rb   rI   r   r   r   rZ   ¿   ó   
zNotificationInstance.sidc                 C   rd   )zC
        :returns: The account_sid
        :rtype: unicode
        r[   re   rI   r   r   r   r[   Ç   rf   z NotificationInstance.account_sidc                 C   rd   )zC
        :returns: The service_sid
        :rtype: unicode
        r
   re   rI   r   r   r   r
   Ï   rf   z NotificationInstance.service_sidc                 C   rd   )zE
        :returns: The date_created
        :rtype: datetime
        r\   re   rI   r   r   r   r\   ×   rf   z!NotificationInstance.date_createdc                 C   rd   )zG
        :returns: List of Identities.
        :rtype: unicode
        r]   re   rI   r   r   r   r]   ß   rf   zNotificationInstance.identitiesc                 C   rd   )z@
        :returns: List of Tags
        :rtype: unicode
        r^   re   rI   r   r   r   r^   ç   rf   zNotificationInstance.tagsc                 C   rd   )z@
        :returns: The segments
        :rtype: unicode
        r_   re   rI   r   r   r   r_   ï   rf   zNotificationInstance.segmentsc                 C   rd   )zo
        :returns: Two priorities defined: low and high.
        :rtype: NotificationInstance.Priority
        r7   re   rI   r   r   r   r7   ÷   rf   zNotificationInstance.priorityc                 C   rd   )zp
        :returns: This parameter specifies how long the notification is valid.
        :rtype: unicode
        r8   re   rI   r   r   r   r8   ÿ   rf   zNotificationInstance.ttlc                 C   rd   )zU
        :returns: Indicates the notification title.
        :rtype: unicode
        r9   re   rI   r   r   r   r9     rf   zNotificationInstance.titlec                 C   rd   )zY
        :returns: Indicates the notification body text.
        :rtype: unicode
        r6   re   rI   r   r   r   r6     rf   zNotificationInstance.bodyc                 C   rd   )zS
        :returns: Indicates a sound to be played.
        :rtype: unicode
        r:   re   rI   r   r   r   r:     rf   zNotificationInstance.soundc                 C   rd   )zo
        :returns: Specifies the actions to be displayed for the notification.
        :rtype: unicode
        r;   re   rI   r   r   r   r;     rf   zNotificationInstance.actionc                 C   rd   )zƒ
        :returns: This parameter specifies the custom key-value pairs of the notification's payload.
        :rtype: dict
        r.   re   rI   r   r   r   r.   '  rf   zNotificationInstance.datac                 C   rd   )zª
        :returns: APNS specific payload that overrides corresponding attributes in a generic payload for Bindings with the apn BindingType.
        :rtype: dict
        r<   re   rI   r   r   r   r<   /  rf   zNotificationInstance.apnc                 C   rd   )z£
        :returns: GCM specific payload that overrides corresponding attributes in generic payload for Bindings with gcm BindingType.
        :rtype: dict
        r=   re   rI   r   r   r   r=   7  rf   zNotificationInstance.gcmc                 C   rd   )z£
        :returns: FCM specific payload that overrides corresponding attributes in generic payload for Bindings with fcm BindingType.
        :rtype: dict
        r@   re   rI   r   r   r   r@   ?  rf   zNotificationInstance.fcmc                 C   rd   )z£
        :returns: SMS specific payload that overrides corresponding attributes in generic payload for Bindings with sms BindingType.
        :rtype: dict
        r>   re   rI   r   r   r   r>   G  rf   zNotificationInstance.smsc                 C   rd   )z¸
        :returns: Messenger specific payload that overrides corresponding attributes in generic payload for Bindings with facebook-messenger BindingType.
        :rtype: dict
        r?   re   rI   r   r   r   r?   O  rf   z'NotificationInstance.facebook_messengerc                 C   rd   )z:
        :returns: The alexa
        :rtype: dict
        rB   re   rI   r   r   r   rB   W  rf   zNotificationInstance.alexac                 C   rG   )rH   z'<Twilio.Notify.V1.NotificationInstance>r   rI   r   r   r   rJ   _  rK   zNotificationInstance.__repr__)rL   rM   rN   rO   r2   r   r   ÚpropertyrZ   r[   r
   r\   r]   r^   r_   r7   r8   r9   r6   r:   r;   r.   r<   r=   r@   r>   r?   rB   rJ   rQ   r   r   r   r   r5   ’   sZ    %



















r5   N)rO   Útwilio.baser   r   r   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer   Útwilio.base.pager   r   rR   r5   r   r   r   r   Ú<module>   s   X)