o
    wÔ+f  ã                   @   s   G d d„ de ƒZdS )c                   @   sV   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S )ÚClickTrackingzEAllows you to track whether a recipient clicked a link in your email.Nc                 C   s0   d| _ d| _|dur|| _|dur|| _dS dS )a$  Create a ClickTracking to track clicked links in your email.

        :param enable: Whether click tracking is enabled
        :type enable: boolean, optional
        :param enable_text: If click tracking is on in your email's text/plain.
        :type enable_text: boolean, optional
        N)Ú_enableÚ_enable_textÚenableÚenable_text)Úselfr   r   © r   úW/var/www/html/venv/lib/python3.10/site-packages/sendgrid/helpers/mail/click_tracking.pyÚ__init__   s   
ÿzClickTracking.__init__c                 C   ó   | j S )zGIndicates if this setting is enabled.

        :rtype: boolean
        ©r   ©r   r   r   r   r      s   zClickTracking.enablec                 C   ó
   || _ dS )zˆIndicates if this setting is enabled.

        :param value: Indicates if this setting is enabled.
        :type value: boolean
        Nr   ©r   Úvaluer   r   r   r      s   
c                 C   r
   )zIndicates if this setting should be included in the text/plain
        portion of your email.

        :rtype: boolean
        ©r   r   r   r   r   r   &   s   zClickTracking.enable_textc                 C   r   )zøIndicates if this setting should be included in the text/plain
        portion of your email.

        :param value: Indicates if this setting should be included in the
        text/plain portion of your email.
        :type value: boolean
        Nr   r   r   r   r   r   /   s   
	c                 C   s0   i }| j dur| j |d< | jdur| j|d< |S )z¥
        Get a JSON-ready representation of this ClickTracking.

        :returns: This ClickTracking, ready for use in a request body.
        :rtype: dict
        Nr   r   )r   r   )r   Úclick_trackingr   r   r   Úget:   s   



zClickTracking.get)NN)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__r	   Úpropertyr   Úsetterr   r   r   r   r   r   r      s    





r   N)Úobjectr   r   r   r   r   Ú<module>   s    