ó
ş9^c           @   s:   d  d l  m Z d  d l m Z d e f d     YZ d S(   i   (   t   Content(   t   ValidateApiKeyt   PlainTextContentc           B   sP   e  Z d  Z d   Z e d    Z e d    Z e j d    Z d   Z RS(   s5   Plain text content to be included in your email.
    c         C   s1   d |  _ t   |  _ | d k	 r- | |  _ n  d S(   s   Create a PlainTextContent with the specified MIME type and content.

        :param content: The actual text content.
        :type content: string
        N(   t   Nonet   _contentR   t
   _validatort   content(   t   selfR   (    (    sJ   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/plain_text_content.pyt   __init__	   s    	c         C   s   d S(   s/   The MIME type.

        :rtype: string
        s
   text/plain(    (   R   (    (    sJ   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/plain_text_content.pyt	   mime_type   s    c         C   s   |  j  S(   s9   The actual text content.

        :rtype: string
        (   R   (   R   (    (    sJ   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/plain_text_content.pyR      s    c         C   s   |  j  j |  | |  _ d S(   sm   The actual text content.

        :param value: The actual text content.
        :type value: string
        N(   R   t   validate_message_dictR   (   R   t   value(    (    sJ   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/plain_text_content.pyR   %   s    c         C   sH   i  } |  j  d k	 r% |  j  | d <n  |  j d k	 rD |  j | d <n  | S(   sŤ   
        Get a JSON-ready representation of this PlainTextContent.

        :returns: This PlainTextContent, ready for use in a request body.
        :rtype: dict
        t   typeR   N(   R	   R   R   (   R   R   (    (    sJ   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/plain_text_content.pyt   get/   s    (	   t   __name__t
   __module__t   __doc__R   t   propertyR	   R   t   setterR   (    (    (    sJ   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/plain_text_content.pyR      s   	
N(   R   R    t
   validatorsR   R   (    (    (    sJ   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/plain_text_content.pyt   <module>   s   