Members
fAlarmActive
Plugin-specific Getters and Setters
- Source:
Methods
calculateTimeStamp()
Format timestamp to app specific format
- Source:
getConfigValue(fieldname)
returns config parameter for given fieldname
Parameters:
Name | Type | Description |
---|---|---|
fieldname |
string |
- Source:
loadConfig()
Loads configuration for KatSys Service
TBD: Needs to be pulled from plugin config store
- Source:
registerForEvents()
Registration of Events at the plugin manager (hook in to events provided by the plugin manager)
- Source:
sendAlarmiatorMessages()
Sending ALARMiator messages to all users in ALARMiatorReceivers
- Source:
sendAlarmiatorMessagesToFirebase(tokens)
Sending Alarmiator messages to firebase
Parameters:
Name | Type | Description |
---|---|---|
tokens |
array |
- Source:
sendFAlarmMessages()
Sending fAlarm messages to all users in fAlarmReceivers
- Source:
sendFAlarmMessagesToFirebase(tokens)
Sending fAlarm messages to firebase
Parameters:
Name | Type | Description |
---|---|---|
tokens |
array |
- Source:
sendMessage()
Check plugin config, whether sending alarms to fAlarm and ALARMiator is active
- Source:
sendTestAlarm(baseDataId, alarmInfo)
Building alarm payload
Parameters:
Name | Type | Description |
---|---|---|
baseDataId |
number | |
alarmInfo |
operation |
- Source:
setMessageBody()
Create messagebody for alarm
- Source:
setMessageTitle()
Creates title for alarm
- Source:
setupFCMInstances()
Creates Firebase Cloud Messaging Instances for fAlarm and ALARMiator
- Source: