
    xh                     "     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ed             Z	e	j        d	             Z	ed
             Z
e
j        d             Z
d ZdS )TrackingSettingsz:Settings to track how recipients interact with your email.Nc                     d| _         d| _        d| _        d| _        ||| _         ||| _        ||| _        |	|| _        dS dS )a  Create a TrackingSettings object

        :param click_tracking: Allows you to track whether a recipient clicked
                               a link in your email.
        :type click_tracking: ClickTracking, optional
        :param open_tracking: Allows you to track whether the email was opened
                              or not, but including a single pixel image in
                              the body of the content. When the pixel is
                              loaded, we can log that the email was opened.
        :type open_tracking: OpenTracking, optional
        :param subscription_tracking: Allows you to insert a subscription
                                      management link at the bottom of the
                                      text and html bodies of your email. If
                                      you would like to specify the location
                                      of the link within your email, you may
                                      use the substitution_tag.
        :type subscription_tracking: SubscriptionTracking, optional
        :param ganalytics: Allows you to enable tracking provided by Google
                           Analytics.
        :type ganalytics: Ganalytics, optional
        N)_click_tracking_open_tracking_subscription_tracking_ganalytics)selfclick_trackingopen_trackingsubscription_tracking
ganalyticss        Z/var/www/html/what/lib/python3.11/site-packages/sendgrid/helpers/mail/tracking_settings.py__init__zTrackingSettings.__init__   sj    4  $"&*#%#1D $"/D ,*?D'!)D "!    c                     | j         S )zmAllows you to track whether a recipient clicked a link in your email.

        :rtype: ClickTracking
        r   r	   s    r   r
   zTrackingSettings.click_tracking/   s     ##r   c                     || _         dS )zAllows you to track whether a recipient clicked a link in your email.

        :param value: Allows you to track whether a recipient clicked a link
                      in your email.
        :type value: ClickTracking
        Nr   r	   values     r   r
   zTrackingSettings.click_tracking7   s      %r   c                     | j         S )zaAllows you to track whether a recipient opened your email.

        :rtype: OpenTracking
        r   r   s    r   r   zTrackingSettings.open_trackingA   s     ""r   c                     || _         dS )zAllows you to track whether a recipient opened your email.

        :param value: Allows you to track whether a recipient opened your
                      email.
        :type value: OpenTracking
        Nr   r   s     r   r   zTrackingSettings.open_trackingI   s     $r   c                     | j         S )z]Settings for the subscription management link.

        :rtype: SubscriptionTracking
        r   r   s    r   r   z&TrackingSettings.subscription_trackingS   s     **r   c                     || _         dS )zSettings for the subscription management link.

        :param value: Settings for the subscription management link.
        :type value: SubscriptionTracking
        Nr   r   s     r   r   z&TrackingSettings.subscription_tracking[   s     ',###r   c                     | j         S )zCSettings for Google Analytics.

        :rtype: Ganalytics
        r   r   s    r   r   zTrackingSettings.ganalyticsd   s     r   c                     || _         dS )z}Settings for Google Analytics.

        :param value: Settings for Google Analytics.
        :type value: Ganalytics
        Nr   r   s     r   r   zTrackingSettings.ganalyticsl   s     !r   c                 "   i }| j         | j                                         |d<   | j        | j                                        |d<   | j        | j                                        |d<   | j        | j                                        |d<   |S )z
        Get a JSON-ready representation of this TrackingSettings.

        :returns: This TrackingSettings, ready for use in a request body.
        :rtype: dict
        Nr
   r   r   r   )r
   getr   r   r   )r	   tracking_settingss     r   r!   zTrackingSettings.getu   s     *262E2I2I2K2K./)151C1G1G1I1Io.%1+/+E+I+I+K+K ')?&.2o.A.A.C.Cl+  r   )NNNN)__name__
__module____qualname____doc__r   propertyr
   setterr   r   r   r!    r   r   r   r      s4       DD !%#'+ 	)* )* )* )*V $ $ X$ % % % # # X# $ $ $ + + X+ !, , "!,     X  ! ! !! ! ! ! !r   r   N)objectr   r)   r   r   <module>r+      sC   E! E! E! E! E!v E! E! E! E! E!r   