Source code for aries_cloudagent.transport.inbound.message

"""Classes representing inbound messages."""

from typing import Union

from .receipt import MessageReceipt

[docs]class InboundMessage: """Container class linking a message payload with its receipt details.""" def __init__( self, payload: Union[str, bytes], receipt: MessageReceipt, *, connection_id: str = None, session_id: str = None, transport_type: str = None, ): """Initialize the inbound message.""" self.connection_id = connection_id self.payload = payload self.receipt = receipt self.session_id = session_id self.transport_type = transport_type