Skip to content

MessageAPI

Constructors

new MessageAPI()

new MessageAPI(apiInstance): MessageAPI

Parameters

Parameter Type

apiInstance

API

Returns

MessageAPI

Defined in

jsEngine/api/MessageAPI.ts:11

Properties

apiInstance

readonly apiInstance: API

Defined in

jsEngine/api/MessageAPI.ts:8


messageManager

readonly messageManager: MessageManager

Defined in

jsEngine/api/MessageAPI.ts:9

Methods

createMessage()

createMessage(type, title, content, code): MessageWrapper

Parameters

Parameter Type Default value

type

MessageType

undefined

title

string

undefined

content

string

undefined

code

string

''

Returns

MessageWrapper

Defined in

jsEngine/api/MessageAPI.ts:16


getMessageById()

getMessageById(id): undefined | MessageWrapper

Parameters

Parameter Type

id

string

Returns

undefined | MessageWrapper

Defined in

jsEngine/api/MessageAPI.ts:27


getMessagesForInstance()

getMessagesForInstance(): MessageWrapper[]

Returns

MessageWrapper[]

Defined in

jsEngine/api/MessageAPI.ts:33