o
    rMfý  ã                   @   s$   G d d„ de ƒZG dd„ de ƒZdS )c                   @   s&   e Zd Zddd„Zdd„ Zdd„ ZdS )	ÚLayoutParametersNc                 C   s   |d u rg }|| _ d S ©N)ÚlayoutParameters)Úselfr   © r   úX/var/www/html/analyze/labelStudio/lib/python3.10/site-packages/boto/mturk/layoutparam.pyÚ__init__   s   
zLayoutParameters.__init__c                 C   s   | j  |¡ d S r   )r   Úappend)r   Úreqr   r   r   Úadd   s   zLayoutParameters.addc                 C   sX   i }t | jƒdksJ ‚t| jƒD ]\}}| ¡ }|D ]}|| |d|d |f < qq|S )Né   zHITLayoutParameter.%s.%sé   )Úlenr   Ú	enumerateÚget_as_params)r   ÚparamsÚnÚlayoutParameterÚkvÚkeyr   r   r   r       s   ÿzLayoutParameters.get_as_paramsr   )Ú__name__Ú
__module__Ú__qualname__r   r
   r   r   r   r   r   r      s    
r   c                   @   s    e Zd ZdZdd„ Zdd„ ZdS )ÚLayoutParameterz9
    Representation of a single HIT layout parameter
    c                 C   s   || _ || _d S r   ©ÚnameÚvalue)r   r   r   r   r   r   r   .   s   
zLayoutParameter.__init__c                 C   s   | j | jdœ}|S )N)ÚNameÚValuer   )r   r   r   r   r   r   2   s   þzLayoutParameter.get_as_paramsN)r   r   r   Ú__doc__r   r   r   r   r   r   r   )   s    r   N)Úobjectr   r   r   r   r   r   Ú<module>   s   