o
    wÔ+f¾  ã                   @   s,   d dl mZ d dlmZ G dd„ deƒZdS )é   )ÚContent)ÚValidateApiKeyc                   @   sF   e Zd ZdZdd„ Zedd„ ƒZedd„ ƒZejdd„ ƒZd	d
„ Z	dS )ÚAmpHtmlContentz.AMP HTML content to be included in your email.c                 C   s$   d| _ tƒ | _|dur|| _dS dS )zšCreate an AMP HTML Content with the specified MIME type and content.

        :param content: The AMP HTML content.
        :type content: string
        N)Ú_contentr   Ú
_validatorÚcontent©Úselfr   © r
   úY/var/www/html/venv/lib/python3.10/site-packages/sendgrid/helpers/mail/amp_html_content.pyÚ__init__   s
   
ÿzAmpHtmlContent.__init__c                 C   s   dS )zDThe MIME type for AMP HTML content.

        :rtype: string
        ztext/x-amp-htmlr
   ©r	   r
   r
   r   Ú	mime_type   s   zAmpHtmlContent.mime_typec                 C   s   | j S )z=The actual AMP HTML content.

        :rtype: string
        )r   r   r
   r
   r   r      s   zAmpHtmlContent.contentc                 C   s   | j  |¡ || _dS )zuThe actual AMP HTML content.

        :param value: The actual AMP HTML content.
        :type value: string
        N)r   Úvalidate_message_dictr   )r	   Úvaluer
   r
   r   r   $   s   
c                 C   s0   i }| j dur| j |d< | jdur| j|d< |S )zŸ
        Get a JSON-ready representation of this AmpContent.

        :returns: This AmpContent, ready for use in a request body.
        :rtype: dict
        NÚtyper   )r   r   r   r
   r
   r   Úget.   s   



zAmpHtmlContent.getN)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Úpropertyr   r   Úsetterr   r
   r
   r
   r   r      s    


	r   N)r   r   Ú
validatorsr   r   r
   r
   r
   r   Ú<module>   s    