Message#

class omni.kit.collaboration.channel_manager.Message(
from_user: PeerUser,
message_type: MessageType,
content: dict,
)#

Bases: object

Message is the container to wrap the messages received from the channel.

Methods

__init__(from_user, message_type, content)

Constructor.

Attributes

content

Message content in dictionary.

from_user

User that message sent from.

message_type

Message type.

__init__(
from_user: PeerUser,
message_type: MessageType,
content: dict,
) None#

Constructor. Internal only.

Parameters:
  • from_user (PeerUser) – User that message sent from.

  • message_type (MessageType) – Message type.

  • content (dict) – Message content in dict.

property content: dict#

Message content in dictionary.

property from_user: PeerUser#

User that message sent from.

property message_type: MessageType#

Message type.