getAlerts

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.

Parameters

acceptedSince

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

cancelledSince

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.