Skip to main content

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​

ParameterTypeDescription
contentstringThe message text
levelMESSAGE_LEVELThe MessageLevel of this message
weightnumberThe message weight (priority)
targetMESSAGE_TARGETThe message target display
idWTLineLegacyMessageIDsThe 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: 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​

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).