AlertsManage geofencing rules and alerts.This class is not part of the basic SDK.In order to use this class you must get an application id from AtlasCT. Summary
| |
| | | |
| |
| Add a new geofencing rule. |
| |
| |
| |
| Gets all previous alerts per a specific period. |
| Gets all geofencing rules for a specific user. |
| Send an emergency alert to another user. |
| Update a specific geofencing rule. |
| |
| The message from the LBS server. |
| The ResponseStatus object of the users which includes the results from the server. |
| The response text from the LBS server. |
| The cause name result that return from the LBS server. |
| An array that contains a list of the causes result that return from the LBS server. |
| The cause type result that return from the LBS server. |
| The result id that return from the LBS server. |
| |
| |
| An array that contains a list of Alert objects. |
| |
| An array that contains a list of Rule objects. |
addGeofencingRule
addGeofencingRule( |
string eventType | | |
string eventUserId | | |
string poiId | | |
string recipientType | | |
string ruleName | | |
boolean sendEmail | | |
boolean sendSMS | | |
boolean sendURL | | |
string startDate | | |
string endDate | | |
string daysInWeek | | |
string storageId | | |
string timeRangeStart | | |
string timeRangeDuration | | |
string customMessageText | | )
|
|
Add a new geofencing rule.
Parameters
eventType | The event type (ENTER, LEAVE, ENTER_LEAVE). |
eventUserId | The user id for this event. |
poiId | The poi id. |
recipientType | The recipient type (OWNER, EVENT_USER, BOTH). |
ruleName | The rule name. |
sendEmail | A boolean if sending an email. |
sendSMS | A boolean if sending an sms. |
sendURL | A boolean if sending an url. |
startDate | When start checking for this rule (dd/mm/yyyy hh:mm:ss). |
endDate | When stop checking for this rule (dd/mm/yyyy hh:mm:ss). |
daysInWeek | Which days to check this rule (1,2,3,4,5,6,7). |
storageId | The storage id for this rule. |
timeRangeStart | The time range for this rule (hh:mm:ss). |
timeRangeDuration | The time duration for this rule (in millis). |
customMessageText | A custom message to send instead of the default one. |
See Also
updateGeofencingRule
deleteRule
deleteRule( |
string storageId | | |
string ruleId | | )
|
|
Delete a specific rule.
Parameters
storageId | The storage id for this rule. |
ruleId | The rule id. |
See Also
addGeofencingRule
disableRule
disableRule( |
string storageId | | |
string ruleId | | )
|
|
Disable a specific rule.
Parameters
storageId | The storage id for this rule. |
ruleId | The rule id. |
See Also
enableRule
enableRule
enableRule( |
string storageId | | |
string ruleId | | )
|
|
Enable a specific rule.
Parameters
storageId | The storage id for this rule. |
ruleId | The rule id. |
See Also
disableRule
getAlerts
getAlerts( |
string eventType | | |
string hoursBack | | )
|
|
Gets all previous alerts per a specific period. Initiaze the alert and alertList object.
Parameters
eventType | The event type (ENTER, LEAVE, ENTER_LEAVE). |
hoursBack | How much hours back to look for? |
getGeofencingRules
getGeofencingRules( |
string storageId | | |
string ruleId | | |
string eventUserId | | |
string poiId | | )
|
|
Gets all geofencing rules for a specific user.
Parameters
storageId | The storage id for this rule. |
ruleId | The rule id. |
eventUserId | The user id for this event. |
poiId | The poi id. |
See Also
addGeofencingRule
sendEmergencyAlert
sendEmergencyAlert( |
string storageId | | |
string recipientId | | |
timestamp time | | |
timestamp localTime | | |
boolean sendEmail | | |
boolean sendSMS | | |
boolean sendURL | | |
string messageText | | |
LatLong latLong | | )
|
|
Send an emergency alert to another user.
Parameters
storageId | The storage id for this rule. |
recipientId | The recipient id. |
time | The current time in timestamp. |
localTime | The local time in timestamp. |
sendEmail | A boolean if sending an email. |
sendSMS | A boolean if sending an sms. |
sendURL | A boolean if sending an url. |
messageText | The message for the emergency alert. |
latLong | The poi latLong point. |
updateGeofencingRule
updateGeofencingRule( |
string eventType | | |
string eventUserId | | |
string poiId | | |
string recipientType | | |
string ruleName | | |
boolean sendEmail | | |
boolean sendSMS | | |
boolean sendURL | | |
string startDate | | |
string endDate | | |
string daysInWeek | | |
string storageId | | |
string timeRangeStart | | |
string timeRangeDuration | | |
string customMessageText | | |
string ruleId | | )
|
|
Update a specific geofencing rule.
Parameters
eventType | The event type (ENTER, LEAVE, ENTER_LEAVE). |
eventUserId | The user id for this event. |
poiId | The poi id. |
recipientType | The recipient type (OWNER, EVENT_USER, BOTH). |
ruleName | The rule name. |
sendEmail | A boolean if sending an email. |
sendSMS | A boolean if sending an sms. |
sendURL | A boolean if sending an url. |
startDate | When start checking for this rule (dd/mm/yyyy hh:mm:ss). |
endDate | When stop checking for this rule (dd/mm/yyyy hh:mm:ss). |
daysInWeek | Which days to check this rule (1,2,3,4,5,6,7). |
storageId | The storage id for this rule. |
timeRangeStart | The time range for this rule (hh:mm:ss). |
timeRangeDuration | The time duration for this rule (in millis). |
customMessageText | A custom message to send instead of the default one. |
See Also
updateGeofencingRule
responseMessage
The message from the LBS server.
responseStatus
The ResponseStatus object of the users which includes the results from the server.
responseText
The response text from the LBS server.
resultCauseName
The cause name result that return from the LBS server.
resultCausesList
An array that contains a list of the causes result that return from the LBS server.
resultCauseType
The cause type result that return from the LBS server.
resultId
The result id that return from the LBS server.
resultStatusCode
interger resultStatusCode |
Equal to resultId.
alertList
An array that contains a list of Alert objects.
ruleList
An array that contains a list of Rule objects.
|