AlertsRx

class AlertsRx

Functions

Link copied to clipboard
fun acceptAlert(alert: Alert): Completable

Accept an alert.

Link copied to clipboard
fun cancelAlert(alert: Alert): Completable

Cancel an alert

Link copied to clipboard
fun getAlerts(acceptedSince: Date? = null, expiredSince: Date? = null, canceledSince: Date? = null): Single<AlertContainer>

Fetches all the alerts from the specified params acceptedSince, expiredSince , canceledSince if they are provided.

Link copied to clipboard
fun getAvailableAlertTemplates(): Single<List<AlertTemplate>>

Fetches all alert templates available.

Link copied to clipboard
fun sendAlertByTemplate(alertTemplate: AlertTemplate): Completable

Send an Alert with a specified template by AlertTemplate.

Properties

Link copied to clipboard
val newAlertEntry: Observable<Alert>

Emits when a Alert is added.

Link copied to clipboard
val updateAlertEntry: Observable<Alert>

Emits when a Alert is updated.