
    xh8
                     "     G d  de           ZdS )c                       e Zd ZdZd	dZed             Zej        d             Zed             Zej        d             Zd Z	dS )
OpenTrackingz
    Allows you to track whether the email was opened or not, by including a
    single pixel image in the body of the content. When the pixel is loaded,
    we log that the email was opened.
    Nc                 J    d| _         d| _        ||| _        |	|| _        dS dS )a3  Create an OpenTracking to track when your email is opened.

        :param enable: If open tracking is enabled.
        :type enable: boolean, optional
        :param substitution_tag: Tag in body to be replaced by tracking pixel.
        :type substitution_tag: OpenTrackingSubstitionTag, optional
        N)_enable_substitution_tagenablesubstitution_tag)selfr   r   s      V/var/www/html/what/lib/python3.11/site-packages/sendgrid/helpers/mail/open_tracking.py__init__zOpenTracking.__init__   s<     !% DK'$4D!!! ('    c                     | j         S )zGIndicates if this setting is enabled.

        :rtype: boolean
        r   r	   s    r
   r   zOpenTracking.enable   s     |r   c                     || _         dS )zIndicates if this setting is enabled.

        :param value: Indicates if this setting is enabled.
        :type value: boolean
        Nr   r	   values     r
   r   zOpenTracking.enable!   s     r   c                     | j         S )zAllows you to specify a substitution tag that you can insert in the
        body of your email at a location that you desire. This tag will be
        replaced by the open tracking pixel.

        :rtype: string
        r   r   s    r
   r   zOpenTracking.substitution_tag*   s     %%r   c                     || _         dS )a  Allows you to specify a substitution tag that you can insert in the
        body of your email at a location that you desire. This tag will be
        replaced by the open tracking pixel.

        :param value: Allows you to specify a substitution tag that you can
                      insert in the body of your email at a location that you
                      desire. This tag will be replaced by the open tracking
                      pixel.

        :type value: string
        Nr   r   s     r
   r   zOpenTracking.substitution_tag4   s     "'r   c                 r    i }| j         
| j         |d<   | j        | j                                        |d<   |S )z
        Get a JSON-ready representation of this OpenTracking.

        :returns: This OpenTracking, ready for use in a request body.
        :rtype: dict
        Nr   r   )r   r   get)r	   open_trackings     r
   r   zOpenTracking.getC   sF     ;"&*kM(# ,040E0I0I0K0KM,-r   )NN)
__name__
__module____qualname____doc__r   propertyr   setterr   r    r   r
   r   r      s         5 5 5 5"   X ]  ] & & X& ' ' '    r   r   N)objectr   r   r   r
   <module>r!      sC   O O O O O6 O O O O Or   