get Notification Data
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
notification Payload
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
notification Payload
The payload of the notification for which data is to be fetched. This must be a valid NotificationPayload object.
response Handler
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.