getAlerts

fun getAlerts(acceptedSince: Date? = null, expiredSince: Date? = null, canceledSince: Date? = null, onCompletion: (Either<AlertContainer, SippoResourceError>) -> Unit)

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

Parameters

acceptedSince

alerts that have been accepted between current time and (current time - acceptedSince) will be retrieved.

canceledSince

alerts that have been cancelled between current time and (current time - cancelledSince) will be retrieved.

expiredSince

alerts that have been expired between current time and (current time - expiredSince) will be retrieved.

onCompletion

Callback that will be invoked when the request is completed. It will receive the Alerts Container in case of success or a SippoResourceError otherwise.