Members
alarmiatorActive
Plugin-specific Getters and Setters
Methods
buildPayloadAlarm(alarmInfo, fcmKeys)
Building alarm payload
Parameters:
Name | Type | Description |
---|---|---|
alarmInfo |
operation | |
fcmKeys |
array |
getConfigValue(fieldname)
returns config parameter for given fieldname
Parameters:
Name | Type | Description |
---|---|---|
fieldname |
string |
loadConfig()
Loads configuration for KatSys Service
TBD: Needs to be pulled from plugin config store
registerForEvents()
Registration of Events at the plugin manager (hook in to events provided by the plugin manager)
sendAlarmMessages(alarmInfo)
Sending ALARMiator messages to all users in ALARMiatorReceivers
Parameters:
Name | Type | Description |
---|---|---|
alarmInfo |
operation |
sendFCMMessage(message, fcmKeys)
Sending message to tokens
Parameters:
Name | Type | Description |
---|---|---|
message |
string | |
fcmKeys |
array |
sendMessage(alarmInfo)
Check plugin config, whether sending alarms to ALARMiator is active
Parameters:
Name | Type | Description |
---|---|---|
alarmInfo |
operation |
sendTestAlarm(baseDataId, alarmInfo)
Building alarm payload
Parameters:
Name | Type | Description |
---|---|---|
baseDataId |
number | |
alarmInfo |
operation |
setupInstance()
Creates ALARMiator mobile Instance