AlertsRx

class AlertsRx

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.

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: Long? = null, expiredSince: Long? = null, cancelledSince: Long? = null): Single<AlertContainer>

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

Link copied to clipboard

Fetches all alert templates available.

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

Send an Alert with a specified template by AlertTemplate.