com.mapsted.alerts.AlertsApi.Repo |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract List<ScheduledAlert> |
getActiveAlerts(int propertyId, int buildingId, int entityId)
Get ongoing or active scheduled alerts for an entity.
| ||||||||||
abstract List<ScheduledAlert> |
getActiveAlerts(int propertyId)
Get ongoing scheduled alerts at a property.
| ||||||||||
abstract List<BaseAlert> |
getAlerts(List<String> alertIds, Consumer<List<BaseAlert>> callback)
Use this method to get scheduled and emergency alerts from local db if you have the alertIds.
| ||||||||||
abstract void |
getEmergencyAlerts(int propertyId, Consumer<List<EmergencyAlert>> callback)
Get emergency alerts for a property
| ||||||||||
abstract void |
getScheduledAlert(String alertId, Consumer<ScheduledAlert> callback)
Use this method to get the scheduled alert object if you have the alertId.
|
Get ongoing or active scheduled alerts for an entity.
propertyId | entity's propertyId |
---|---|
buildingId | entity's buildingId |
entityId | entity's id |
Get ongoing scheduled alerts at a property.
propertyId | property id |
---|
Use this method to get scheduled and emergency alerts from local db if you have the alertIds.
BaseAlert
can be ScheduledAlert
or EmergencyAlert
.
alertIds | input parameter |
---|---|
callback | callback for result |
Get emergency alerts for a property
propertyId | property id |
---|---|
callback | callback with result |
Use this method to get the scheduled alert object if you have the alertId.
alertId | alert id |
---|---|
callback | callback for result |