o
    ei&                     @   sH   d Z G dd deZG dd deZG dd deZG dd deZd	S )
zdBase classes that are extended by low level AMQP frames and higher level
AMQP classes and methods.

c                   @   s(   e Zd ZdZd ZdZdd Zdd ZdS )
AMQPObjectz]Base object that is extended by AMQP low level frames and AMQP classes
    and methods.

    Nc                 C   s^   t  }| j D ]\}}t| j|d |kr|d||f  q|s&d| j S d| jt|f S )Nz%s=%sz<%s>z<%s(%s)>)list__dict__itemsgetattr	__class__appendNAMEsorted)selfr   keyvalue r   O/var/www/html/pca-backend/venv/lib/python3.10/site-packages/pika/amqp_object.py__repr__   s   
zAMQPObject.__repr__c                 C   s   |d ur
| j |j kS dS )NF)r   )r
   otherr   r   r   __eq__   s   zAMQPObject.__eq__)__name__
__module____qualname____doc__r   INDEXr   r   r   r   r   r   r      s    	r   c                   @      e Zd ZdZdZdS )ClasszIs extended by AMQP classeszUnextended ClassNr   r   r   r   r   r   r   r   r   r          r   c                   @   s0   e Zd ZdZdZdZdd Zdd Zdd	 Zd
S )MethodzIs extended by AMQP methodszUnextended MethodFc                 C   s   || _ || _dS )zIf the method is a content frame, set the properties and body to
        be carried as attributes of the class.

        :param pika.frame.Properties properties: AMQP Basic Properties
        :param bytes body: The message body

        N)_properties_body)r
   
propertiesbodyr   r   r   _set_content)   s   
zMethod._set_contentc                 C      | j S )zWReturn the properties if they are set.

        :rtype: pika.frame.Properties

        )r   r
   r   r   r   get_properties4      zMethod.get_propertiesc                 C   r!   )zLReturn the message body if it is set.

        :rtype: str|unicode

        )r   r"   r   r   r   get_body<   r$   zMethod.get_bodyN)	r   r   r   r   r   synchronousr    r#   r%   r   r   r   r   r   $   s    r   c                   @   r   )
Propertiesz=Class to encompass message properties (AMQP Basic.Properties)zUnextended PropertiesNr   r   r   r   r   r'   E   r   r'   N)r   objectr   r   r   r'   r   r   r   r   <module>   s
    !