Chat

Xelion Object
      ↪ Chat


A chat message. A chat message is a part of a chat session. A chat message contains text or an attachment.

Every member of the chat session receives a Communication object with the data of this message.

Fields

Name Type Notes

creator

Addressable

The creator of the message.

chatSession

Chat Session

The chat session of which this message is a part of.

contents

String

The textual contents of this chat message, or null if this chat message contains an attachment.

reference

Entity

An reference to an attachment, or null if this message contains text.

date

String

The date this message is sent.

incoming

Boolean

true if the message is incoming (received) and false if it’s outgoing (sent).

read

Boolean

true if the message has been read.

clientId

String

An optional ID. The client may set this ID in order to be able to recognize it later.

communication

User Chat

only when sending a message

The object id of the created communication object

forwarded

Boolean

true if the message is a forwarded message.

repliedMessage

Chat

original message where replied to