ó
º9—^c           @   s   d  e  f d „  ƒ  YZ d S(   t   GroupsToDisplayc           B   sD   e  Z d  Z d d „ Z e d „  ƒ Z e j d „  ƒ Z d „  Z RS(   sd   The unsubscribe groups that you would like to be displayed on the
    unsubscribe preferences page..c         C   s%   d |  _ | d k	 r! | |  _ n  d S(   s@  Create a GroupsToDisplay object

        :param groups_to_display: An array containing the unsubscribe groups
                                  that you would like to be displayed on the
                                  unsubscribe preferences page.
        :type groups_to_display: array of integers, optional
        N(   t   Nonet   _groups_to_displayt   groups_to_display(   t   selfR   (    (    sI   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/groups_to_display.pyt   __init__   s    	c         C   s   |  j  S(   s    An array containing the unsubscribe groups that you would like to be
        displayed on the unsubscribe preferences page.

        :rtype: array(int)
        (   R   (   R   (    (    sI   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/groups_to_display.pyR      s    c         C   s:   | d k	 r- t | ƒ d k r- t d ƒ ‚ n  | |  _ d S(   s[  An array containing the unsubscribe groups that you would like to be
        displayed on the unsubscribe preferences page.

        :param value: An array containing the unsubscribe groups that you
                      would like to be displayed on the unsubscribe
                      preferences page.
        :type value: array(int)
        i   s/   New groups_to_display exceeds max length of 25.N(   R   t   lent
   ValueErrorR   (   R   t   value(    (    sI   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/groups_to_display.pyR      s    
c         C   s   |  j  S(   s¶   
        Get a JSON-ready representation of this GroupsToDisplay.

        :returns: This GroupsToDisplay, ready for use in a request body.
        :rtype: array of integers
        (   R   (   R   (    (    sI   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/groups_to_display.pyt   get)   s    N(	   t   __name__t
   __module__t   __doc__R   R   t   propertyR   t   setterR	   (    (    (    sI   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/groups_to_display.pyR       s
   	N(   t   objectR    (    (    (    sI   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/groups_to_display.pyt   <module>   t    