U
    42‹iV	  ã                   @   s   G d d„ de ƒZdS )c                   @   sp   e Zd ZdZddd„Zedd„ ƒZej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 )ÚFooterSettingsz?The default footer that you would like included on every email.Nc                 C   s@   d| _ d| _d| _|dk	r || _|dk	r.|| _|dk	r<|| _dS )a<  Create a default footer.

        :param enable: Whether this footer should be applied.
        :type enable: boolean, optional
        :param text: Text content of this footer
        :type text: FooterText, optional
        :param html: HTML content of this footer
        :type html: FooterHtml, optional
        N)Ú_enableÚ_textÚ_htmlÚenableÚtextÚhtml)Úselfr   r   r   © r	   úI/tmp/pip-unpacked-wheel-clku7wca/sendgrid/helpers/mail/footer_settings.pyÚ__init__   s    
zFooterSettings.__init__c                 C   s   | j S )zGIndicates if this setting is enabled.

        :rtype: boolean
        ©r   ©r   r	   r	   r
   r      s    zFooterSettings.enablec                 C   s
   || _ dS )zˆIndicates if this setting is enabled.

        :param value: Indicates if this setting is enabled.
        :type value: boolean
        Nr   ©r   Úvaluer	   r	   r
   r   #   s    c                 C   s   | j S )zGThe plain text content of your footer.

        :rtype: string
        ©r   r   r	   r	   r
   r   ,   s    zFooterSettings.textc                 C   s
   || _ dS )z‰The plain text content of your footer.

        :param value: The plain text content of your footer.
        :type value: string
        Nr   r   r	   r	   r
   r   4   s    c                 C   s   | j S )zAThe HTML content of your footer.

        :rtype: string
        ©r   r   r	   r	   r
   r   =   s    zFooterSettings.htmlc                 C   s
   || _ dS )z}The HTML content of your footer.

        :param value: The HTML content of your footer.
        :type value: string
        Nr   r   r	   r	   r
   r   E   s    c                 C   sL   i }| j dk	r| j |d< | jdk	r0| j ¡ |d< | jdk	rH| j ¡ |d< |S )z§
        Get a JSON-ready representation of this FooterSettings.

        :returns: This FooterSettings, ready for use in a request body.
        :rtype: dict
        Nr   r   r   )r   r   Úgetr   )r   Zfooter_settingsr	   r	   r
   r   N   s    



zFooterSettings.get)NNN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Úpropertyr   Úsetterr   r   r   r	   r	   r	   r
   r      s   






r   N)Úobjectr   r	   r	   r	   r
   Ú<module>   ó    