Alerts
Functions
Link copied to clipboard
fun acceptAlert(alert: Alert, onCompletion: (SippoResourceError?) -> Unit)
Content copied to clipboard
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)
Content copied to clipboard
Cancel an alert.
Link copied to clipboard
fun getAlerts(acceptedSince: Date? = null, expiredSince: Date? = null, canceledSince: Date? = null, onCompletion: (Either<AlertContainer, SippoResourceError>) -> Unit)
Content copied to clipboard
Fetches all the alerts from the specified params acceptedSince, expiredSince , canceledSince if they are provided.
Link copied to clipboard
fun getAvailableAlertTemplates(onCompletion: (Either<List<AlertTemplate>, SippoResourceError>) -> Unit)
Content 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)
Content copied to clipboard
Send an Alert with a specified template by AlertTemplate.