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 | WTLineLegacyMessageIDs | The message ID |
Returns
Message
Properties
content
readonlycontent:string
Defined in: workingtitle-instruments-wt21/shared/MessageSystem/Message.ts:21
The text content of this message.
id
readonlyid:WTLineLegacyMessageIDs
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
readonlylevel:MESSAGE_LEVEL
Defined in: workingtitle-instruments-wt21/shared/MessageSystem/Message.ts:23
The MESSAGE_LEVEL of severity of the message.
target
readonlytarget:MESSAGE_TARGET
Defined in: workingtitle-instruments-wt21/shared/MessageSystem/Message.ts:27
The message target display.
timestamp
readonlytimestamp:number
Defined in: workingtitle-instruments-wt21/shared/MessageSystem/Message.ts:9
Returns
Gets the unix timestamp for when the message was created
weight
readonlyweight:number
Defined in: workingtitle-instruments-wt21/shared/MessageSystem/Message.ts:25
The message weight (priority).