get Alerts
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.
Parameters
accepted Since
alerts that have been accepted between current time and (current time - acceptedSince) will be retrieved.
canceled Since
alerts that have been cancelled between current time and (current time - cancelledSince) will be retrieved.
expired Since
alerts that have been expired between current time and (current time - expiredSince) will be retrieved.
on Completion
Callback that will be invoked when the request is completed. It will receive the Alerts Container in case of success or a SippoResourceError otherwise.