o
    wÔ+fˆ	  ã                   @   s   G d d„ de ƒZdS )c                   @   s^   e Zd ZdZddd„Zedd„ ƒZejdd„ ƒZedd	„ ƒZejd
d	„ ƒZdd„ Z	dd„ Z
dS )ÚSendAtaH  A unix timestamp allowing you to specify when you want your
    email to be delivered. This may be overridden by the
    personalizations[x].send_at parameter. You can't schedule more
    than 72 hours in advance. If you have the flexibility, it's
    better to schedule mail for off-peak times. Most emails are
    scheduled and sent at the top of the hour or half hour.
    Scheduling email to avoid those times (for example, scheduling
    at 10:53) can result in lower deferral rates because it won't
    be going through our servers at the same times as everyone else's
    mail.Nc                 C   s0   d| _ d| _|dur|| _|dur|| _dS dS )a@  Create a unix timestamp specifying when your email should
        be delivered.

        :param send_at: Unix timestamp
        :type send_at: integer
        :param name: p is the Personalization object or Personalization object
                     index
        :type name: Personalization, integer, optional
        N)Ú_send_atÚ_personalizationÚsend_atÚpersonalization)Úselfr   Úp© r   úP/var/www/html/venv/lib/python3.10/site-packages/sendgrid/helpers/mail/send_at.pyÚ__init__   s   

ÿzSendAt.__init__c                 C   ó   | j S )z3A unix timestamp.

        :rtype: integer
        ©r   ©r   r   r   r	   r      ó   zSendAt.send_atc                 C   ó
   || _ dS )z`A unix timestamp.

        :param value: A unix timestamp.
        :type value: integer
        Nr   ©r   Úvaluer   r   r	   r   &   s   
c                 C   r   )zmThe Personalization object or Personalization object index

        :rtype: Personalization, integer
        ©r   r   r   r   r	   r   /   r   zSendAt.personalizationc                 C   r   )zÙThe Personalization object or Personalization object index

        :param value: The Personalization object or Personalization object
                      index
        :type value: Personalization, integer
        Nr   r   r   r   r	   r   7   s   
c                 C   s   t |  ¡ ƒS )zKGet a JSON representation of this object.

        :rtype: integer
        )ÚstrÚgetr   r   r   r	   Ú__str__A   s   zSendAt.__str__c                 C   r   )z¨
        Get a JSON-ready representation of this SendAt object.

        :returns: The unix timestamp, ready for use in a request body.
        :rtype: integer
        )r   r   r   r   r	   r   H   s   z
SendAt.get)NN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r
   Úpropertyr   Úsetterr   r   r   r   r   r   r	   r      s    





	r   N)Úobjectr   r   r   r   r	   Ú<module>   s    