o
    w+f		                     @   s    d dl mZ G dd deZdS )   )ValidateApiKeyc                   @   sT   e Zd ZdZdd Zedd Zejdd Zedd Zejd	d Zd
d Z	dS )ContentzvContent to be included in your email.

    You must specify at least one mime type in the Contents of your email.
    c                 C   s8   d| _ d| _t | _|dur|| _|dur|| _dS dS )zCreate a Content with the specified MIME type and content.

        :param mime_type: MIME type of this Content (e.g. "text/plain").
        :type mime_type: string
        :param content: The actual content.
        :type content: string
        N)
_mime_type_contentr   
_validator	mime_typecontent)selfr   r    r
   P/var/www/html/venv/lib/python3.10/site-packages/sendgrid/helpers/mail/content.py__init__   s   
zContent.__init__c                 C      | j S )zThe MIME type of the content you are including in your email.
        For example, "text/plain" or "text/html" or "text/x-amp-html".

        :rtype: string
        r   r	   r
   r
   r   r      s   zContent.mime_typec                 C   s
   || _ dS )a[  The MIME type of the content you are including in your email.
        For example, "text/plain" or "text/html" or "text/x-amp-html".

        :param value: The MIME type of the content you are including in your
                      email.
        For example, "text/plain" or "text/html" or "text/x-amp-html".
        :type value: string
        Nr   r	   valuer
   r
   r   r   &   s   

c                 C   r   )zQThe actual content (of the specified mime type).

        :rtype: string
        )r   r   r
   r
   r   r   2   s   zContent.contentc                 C   s   | j | || _dS )zThe actual content (of the specified mime type).

        :param value: The actual content (of the specified mime type).
        :type value: string
        N)r   validate_message_dictr   r   r
   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 Content.

        :returns: This Content, ready for use in a request body.
        :rtype: dict
        Ntyper   )r   r   )r	   r   r
   r
   r   getD   s   



zContent.getN)
__name__
__module____qualname____doc__r   propertyr   setterr   r   r
   r
   r
   r   r      s    



	r   N)
validatorsr   objectr   r
   r
   r
   r   <module>   s    