Class: Message
Defined in: workingtitle-instruments-wt21/shared/MessageSystem/Message.ts:5
Message for the message system.
Extended by
Constructors
Constructor
new Message(
content
,level
,weight
,target
,id
):Message
Defined in: workingtitle-instruments-wt21/shared/MessageSystem/Message.ts:19
Constructs a new instance of Message
Parameters
Parameter | Type | Description |
---|---|---|
content | string | The message text |
level | MESSAGE_LEVEL | The MessageLevel of this message |
weight | number | The message weight (priority) |
target | MESSAGE_TARGET | The message target display |
id | FMS_MESSAGE_ID | The message ID |
Returns
Message
Properties
content
readonly
content:string
Defined in: workingtitle-instruments-wt21/shared/MessageSystem/Message.ts:21
The text content of this message.
id
readonly
id:FMS_MESSAGE_ID
Defined in: workingtitle-instruments-wt21/shared/MessageSystem/Message.ts:29
Returns
Gets the ID of the message definition
isNew
isNew:
boolean
=true
Defined in: workingtitle-instruments-wt21/shared/MessageSystem/Message.ts:7
Default to true, becomes false once viewed on the messages FMC page.
level
readonly
level:MESSAGE_LEVEL
Defined in: workingtitle-instruments-wt21/shared/MessageSystem/Message.ts:23
The MESSAGE_LEVEL of severity of the message.
target
readonly
target:MESSAGE_TARGET
Defined in: workingtitle-instruments-wt21/shared/MessageSystem/Message.ts:27
The message target display.
timestamp
readonly
timestamp:number
Defined in: workingtitle-instruments-wt21/shared/MessageSystem/Message.ts:9
Returns
Gets the unix timestamp for when the message was created
weight
readonly
weight:number
Defined in: workingtitle-instruments-wt21/shared/MessageSystem/Message.ts:25
The message weight (priority).