NotificationApi

Functions

Link copied to clipboard
abstract suspend fun acknowledgeEvents(clientId: String, markerId: String, eventAcknowledgeRequest: EventAcknowledgeRequest)
Link copied to clipboard
abstract suspend fun consumeLiveEvents(clientId: String, markerId: String): NetworkResponse<Flow<WebSocketEvent<ConsumableNotificationResponse>>>

Open a websocket connection to listen to live events.

Link copied to clipboard
abstract suspend fun getAllNotifications(querySize: Int, queryClient: String): NetworkResponse<NotificationResponse>

request Notifications from the beginning of time

Link copied to clipboard
open fun getApiNotSupportedError(apiName: String, apiVersion: Int): NetworkResponse.Error
Link copied to clipboard
abstract suspend fun listenToLiveEvents(clientId: String): NetworkResponse<Flow<WebSocketEvent<EventResponseToStore>>>
Link copied to clipboard
abstract suspend fun mostRecentNotification(queryClient: String): NetworkResponse<EventResponse>
Link copied to clipboard
abstract suspend fun notificationsByBatch(querySize: Int, queryClient: String, querySince: String): NetworkResponse<NotificationResponse>
Link copied to clipboard
abstract suspend fun oldestNotification(queryClient: String): NetworkResponse<EventResponseToStore>