Alerts

class Alerts

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun acceptAlert(alert: Alert, onCompletion: (SippoResourceError?) -> Unit)

Accept an alert.

Link copied to clipboard

Adds a listener to receive alerts events.

Link copied to clipboard
fun cancelAlert(alert: Alert, onCompletion: (SippoResourceError?) -> Unit)

Cancel an alert.

Link copied to clipboard
fun getAlerts(acceptedSince: Long? = null, expiredSince: Long? = null, cancelledSince: Long? = null, onCompletion: (Either<AlertContainer, SippoResourceError>) -> Unit)

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

Removes the specified listener.

Link copied to clipboard
fun sendAlertByTemplate(alertTemplate: AlertTemplate, onCompletion: (SippoResourceError?) -> Unit)

Send an Alert with a specified template by AlertTemplate.