def __init__(self, uid, subject, content, sender_uid, reply_to, access,
                 timestamp=None, extra=None):
        """
        Sets up the bean

        :param uid: Message UID
        :param subject: Subject of the message
        :param content: Content of the message
        :param sender_uid: UID of the sending peer
        :param reply_to: UID of the message this one replies to
        :param access: Access ID of the transport which received this message
        :param timestamp: Message sending time stamp
        :param extra: Extra configuration for the transport in case of reply
        """
        Message.__init__(self, subject, content)
        self._headers[herald.MESSAGE_HEADER_UID] = uid
        self._headers[herald.MESSAGE_HEADER_SENDER_UID] = sender_uid
        self._headers[herald.MESSAGE_HEADER_REPLIES_TO] = reply_to
        self._access = access
        self._extra = extra
        self._headers[herald.MESSAGE_HEADER_TIMESTAMP] = timestamp
def __init__ ( self , uid , subject , content , sender_uid , reply_to , access , timestamp = None , extra = None ) : Message . __init__ ( self , subject , content ) self . _headers [ herald . MESSAGE_HEADER_UID ] = uid self . _headers [ herald . MESSAGE_HEADER_SENDER_UID ] = sender_uid self . _headers [ herald . MESSAGE_HEADER_REPLIES_TO ] = reply_to self . _access = access self . _extra = extra self . _headers [ herald . MESSAGE_HEADER_TIMESTAMP ] = timestamp
Sets up the bean

        :param uid: Message UID
        :param subject: Subject of the message
        :param content: Content of the message
        :param sender_uid: UID of the sending peer
        :param reply_to: UID of the message this one replies to
        :param access: Access ID of the transport which received this message
        :param timestamp: Message sending time stamp
        :param extra: Extra configuration for the transport in case of reply