get Alerts
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
accepted Since
alerts that have been accepted between current time and (current time - acceptedSince) will be retrieved.
cancelled 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.