NotificationApi
Functions
Link copied to clipboard
abstract suspend fun acknowledgeEvents(clientId: String, markerId: String, eventAcknowledgeRequest: EventAcknowledgeRequest)
Link copied to clipboard
open suspend fun acknowledgeEventsOnOpenSession(clientId: String, markerId: String, eventAcknowledgeRequest: EventAcknowledgeRequest): NetworkResponse<Unit>
Sends eventAcknowledgeRequest on the consumable session that is already open, suspending until it is queued. Unlike acknowledgeEvents, never opens a session and reports failure instead of logging it.
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
Link copied to clipboard
abstract suspend fun listenToLiveEvents(clientId: String): NetworkResponse<Flow<WebSocketEvent<EventResponseToStore>>>
Link copied to clipboard
Link copied to clipboard
abstract suspend fun notificationsByBatch(querySize: Int, queryClient: String, querySince: String): NetworkResponse<NotificationResponse>
Link copied to clipboard