@acceleratxr/core_sdk / Message
Class: Message#
The Message is a persistent message or notification that is sent from one user to another.
REQUIRES: Social Services
author Jean-Philippe Steinmetz info@acceleratxr.com
Hierarchy#
-
↳ Message
Index#
Constructors#
Properties#
Accessors#
Constructors#
constructor#
+ new Message(other?: any): Message
Overrides EntityBase.constructor
Defined in src/models/Message.ts:39
Parameters:#
Name |
Type |
|---|---|
|
any |
Returns: Message
Properties#
attachments#
• attachments: any = null
Defined in src/models/Message.ts:39
A map of key-value pairs representing a list of attachments that have been appended to the message. The key of each pair is the name of the attachment and the value must be an encoded string. The string can represent any data including binary data using base64 encoding.
body#
• body: string = “”
Defined in src/models/Message.ts:34
The message contents.
dateCreated#
• dateCreated: Date = new Date()
Inherited from EntityBase.dateCreated
Defined in src/EntityBase.ts:18
The date and time that the object was created.
dateModified#
• dateModified: Date = new Date()
Inherited from EntityBase.dateModified
Defined in src/EntityBase.ts:23
The date and time that the object was last modified.
receiverUid#
• receiverUid: string = “”
Defined in src/models/Message.ts:19
The unique identifier of the user that is to receive the message.
senderUid#
• senderUid: string = “”
Defined in src/models/Message.ts:24
The unique identifier of the user that sent the message.
subject#
• subject: string = “”
Defined in src/models/Message.ts:29
The summary of the message contents.
uid#
• uid: string = uuid.v4()
Inherited from EntityBase.uid
Defined in src/EntityBase.ts:13
The universally unique identifier of the object.
version#
• version: number = 0
Inherited from EntityBase.version
Defined in src/EntityBase.ts:28
The optimistic locking version of the object.
Accessors#
ClassName#
• Staticget ClassName(): string
Defined in src/models/Message.ts:14
Returns: string