o
    wÔ+f÷  ã                   @   s   G d d„ de ƒZdS )c                   @   s<   e Zd ZdZd
dd„Zedd„ ƒZejdd„ ƒZdd	„ ZdS )ÚGroupsToDisplayzdThe unsubscribe groups that you would like to be displayed on the
    unsubscribe preferences page..Nc                 C   s   d| _ |dur|| _dS dS )a@  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)Ú_groups_to_displayÚgroups_to_display)Úselfr   © r   úZ/var/www/html/venv/lib/python3.10/site-packages/sendgrid/helpers/mail/groups_to_display.pyÚ__init__   s   
ÿzGroupsToDisplay.__init__c                 C   ó   | j S )z An array containing the unsubscribe groups that you would like to be
        displayed on the unsubscribe preferences page.

        :rtype: array(int)
        )r   ©r   r   r   r   r      ó   z!GroupsToDisplay.groups_to_displayc                 C   s&   |durt |ƒdkrtdƒ‚|| _dS )a[  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)
        Né   z/New groups_to_display exceeds max length of 25.)ÚlenÚ
ValueErrorr   )r   Úvaluer   r   r   r      s   

c                 C   r   )z¶
        Get a JSON-ready representation of this GroupsToDisplay.

        :returns: This GroupsToDisplay, ready for use in a request body.
        :rtype: array of integers
        )r   r	   r   r   r   Úget)   r
   zGroupsToDisplay.get)N)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Úpropertyr   Úsetterr   r   r   r   r   r      s    


r   N)Úobjectr   r   r   r   r   Ú<module>   s    