getNotificationData

suspend fun getNotificationData(notificationPayload: NotificationPayload): AxpResult<out List<NotificationResult>>

This function is a suspending function that fetches notification data.

Return

An AxpResult containing a list of NotificationResult objects if the operation is successful.

Parameters

notificationPayload

The payload of the notification for which data is to be fetched.

Throws

if the given inputs are not valid.


fun getNotificationData(notificationPayload: NotificationPayload, responseHandler: ResponseHandler<List<NotificationResult>>)

Fetches notification data asynchronously.

This function fetches the data for a given notification payload asynchronously. The result of the operation is handled by a ResponseHandler.

Parameters

notificationPayload

The payload of the notification for which data is to be fetched. This must be a valid NotificationPayload object.

responseHandler

The response handler for asynchronous processing. This handler will be called with the result of the operation.

Throws

if the given inputs are not valid.