
    xh                     :    d dl mZ d dlmZ  G d de          ZdS )   )Content)ValidateApiKeyc                   j    e Zd ZdZd Zed             Zed             Zej        d             Zd Z	dS )HtmlContentz*HTML content to be included in your email.c                 P    d| _         t                      | _        |	|| _        dS dS )zCreate an HtmlContent with the specified MIME type and content.

        :param content: The HTML content.
        :type content: string
        N)_contentr   
_validatorcontentselfr
   s     U/var/www/html/what/lib/python3.11/site-packages/sendgrid/helpers/mail/html_content.py__init__zHtmlContent.__init__   s1     (**"DLLL     c                     dS )z@The MIME type for HTML content.

        :rtype: string
        z	text/html r   s    r   	mime_typezHtmlContent.mime_type   s	     {r   c                     | j         S )z9The actual HTML content.

        :rtype: string
        )r   r   s    r   r
   zHtmlContent.content   s     }r   c                 H    | j                             |           || _        dS )zmThe actual HTML content.

        :param value: The actual HTML content.
        :type value: string
        N)r	   validate_message_dictr   )r   values     r   r
   zHtmlContent.content$   s%     	--e444r   c                 N    i }| j         
| j         |d<   | j        
| j        |d<   |S )z
        Get a JSON-ready representation of this HtmlContent.

        :returns: This HtmlContent, ready for use in a request body.
        :rtype: dict
        Ntyper   )r   r
   r   s     r   getzHtmlContent.get.   s5     >%"nGFO<##|GGr   N)
__name__
__module____qualname____doc__r   propertyr   r
   setterr   r   r   r   r   r      s        44
# 
# 
#   X   X ^  ^    r   r   N)r
   r   
validatorsr   r   r   r   r   <module>r"      s]          & & & & & &6 6 6 6 6' 6 6 6 6 6r   