ó
º9^c           @   s   d  e  f d     YZ d S(   t   ClickTrackingc           B   sh   e  Z d  Z d d d  Z e d    Z e j d    Z e d    Z e j d    Z d   Z	 RS(   sE   Allows you to track whether a recipient clicked a link in your email.c         C   sF   d |  _ d |  _ | d k	 r* | |  _ n  | d k	 rB | |  _ n  d S(   s$  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(   t   Nonet   _enablet   _enable_textt   enablet   enable_text(   t   selfR   R   (    (    sF   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/click_tracking.pyt   __init__   s    		c         C   s   |  j  S(   sG   Indicates if this setting is enabled.

        :rtype: boolean
        (   R   (   R   (    (    sF   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/click_tracking.pyR      s    c         C   s   | |  _  d S(   s   Indicates if this setting is enabled.

        :param value: Indicates if this setting is enabled.
        :type value: boolean
        N(   R   (   R   t   value(    (    sF   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/click_tracking.pyR      s    c         C   s   |  j  S(   s   Indicates if this setting should be included in the text/plain
        portion of your email.

        :rtype: boolean
        (   R   (   R   (    (    sF   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/click_tracking.pyR   &   s    c         C   s   | |  _  d S(   sø   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
        N(   R   (   R   R   (    (    sF   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/click_tracking.pyR   /   s    	c         C   sH   i  } |  j  d k	 r% |  j  | d <n  |  j d k	 rD |  j | d <n  | S(   s¥   
        Get a JSON-ready representation of this ClickTracking.

        :returns: This ClickTracking, ready for use in a request body.
        :rtype: dict
        R   R   N(   R   R   R   (   R   t   click_tracking(    (    sF   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/click_tracking.pyt   get:   s    N(
   t   __name__t
   __module__t   __doc__R   R   t   propertyR   t   setterR   R
   (    (    (    sF   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/click_tracking.pyR       s   		N(   t   objectR    (    (    (    sF   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/click_tracking.pyt   <module>   t    