# AlertsRx

class AlertsRx

## Properties

newAlertEntry
Link copied to clipboard
val newAlertEntry: Observable<Alert>

Emits when a Alert is added.

updateAlertEntry
Link copied to clipboard
val updateAlertEntry: Observable<Alert>

Emits when a Alert is updated.

## Functions

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

Accept an alert.

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

Cancel an alert

getAlerts
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.

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

Fetches all alert templates available.

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

Send an Alert with a specified template by AlertTemplate.