U
    42‹i  ã                   @   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   s,   d| _ d| _|dk	r|| _|dk	r(|| _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   úH/tmp/pip-unpacked-wheel-clku7wca/sendgrid/helpers/mail/click_tracking.pyÚ__init__   s    zClickTracking.__init__c                 C   s   | j S )zGIndicates if this setting is enabled.

        :rtype: boolean
        ©r   ©r   r   r   r   r      s    zClickTracking.enablec                 C   s
   || _ 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   s   | j S )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   s
   || _ dS )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k	r| j |d< | jdk	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   Z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>   ó    