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 )ÚPlainTextContentz5Plain text content to be included in your email.
    c                 C   s$   d| _ tƒ | _|dur|| _dS dS )zœCreate a PlainTextContent with the specified MIME type and content.

        :param content: The actual text content.
        :type content: string
        N)Ú_contentr   Ú
_validatorÚcontent©Úselfr   © r
   ú[/var/www/html/venv/lib/python3.10/site-packages/sendgrid/helpers/mail/plain_text_content.pyÚ__init__	   s
   
ÿzPlainTextContent.__init__c                 C   s   dS )z/The MIME type.

        :rtype: string
        z
text/plainr
   ©r	   r
   r
   r   Ú	mime_type   s   zPlainTextContent.mime_typec                 C   s   | j S )z9The actual text content.

        :rtype: string
        )r   r   r
   r
   r   r      s   zPlainTextContent.contentc                 C   s   | j  |¡ || _dS )zmThe actual text content.

        :param value: The actual text 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 PlainTextContent.

        :returns: This PlainTextContent, ready for use in a request body.
        :rtype: dict
        NÚtyper   )r   r   r   r
   r
   r   Úget/   s   



zPlainTextContent.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    