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

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

    Nc                    t                      }| j                                        D ]9\  }}t          | j        |d           |k    r|                    |d|           :|s
d| j        z  S d| j        dt          |          dS )N=z<%s><(z)>)list__dict__itemsgetattr	__class__appendNAMEsorted)selfr
   keyvalues       S/home/alex/cs2snipeproduction/venv/lib/python3.11/site-packages/pika/amqp_object.py__repr__zAMQPObject.__repr__   s    ---// 	5 	5JCt~sD11U::UU3444 	&DI%%	&!YYYu66    c                 *    || j         |j         k    S dS )NF)r	   )r   others     r   __eq__zAMQPObject.__eq__   s    =EN225r   )__name__
__module____qualname____doc__r   INDEXr   r    r   r   r   r      sH          DE7 7 7    r   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       s        %%DDDr   r    c                   ,    e Zd ZdZdZdZd Zd Zd ZdS )MethodzIs extended by AMQP methodszUnextended MethodFc                 "    || _         || _        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bodys      r   _set_contentzMethod._set_content)   s     &


r   c                     | j         S )zWReturn the properties if they are set.

        :rtype: pika.frame.Properties

        )r%   r   s    r   get_propertieszMethod.get_properties4   s     r   c                     | j         S )zLReturn the message body if it is set.

        :rtype: str|unicode

        )r&   r+   s    r   get_bodyzMethod.get_body<   s     zr   N)	r   r   r   r   r   synchronousr)   r,   r.   r   r   r   r#   r#   $   sQ        %%DK	 	 	         r   r#   c                       e Zd ZdZdZdS )
Propertiesz=Class to encompass message properties (AMQP Basic.Properties)zUnextended PropertiesNr!   r   r   r   r1   r1   E   s        GG"DDDr   r1   N)r   objectr   r    r#   r1   r   r   r   <module>r3      s           0    J   
    Z   B# # # # # # # # # #r   