Notification SDK methods
Method Method detail
getNotificationsList() Convenient getter method to get all notification list for the logged in user.
updateNotificationStatus() Convenient setter method to change the notification isread status.
  • For Fetching Notifications List
    API Class : NotificationInteractor
    Method : getAllNotifications()
    Returns the list of all notifications for logged in user.
    Request:
    • Request Object : NotificationRequest
    • Parameters
    • limit: How many notifications you want in a single response
    • offset: it's the current page/offset
    Response:
    • Response Object : NotificationInfo
    • Message: It is a simple string message
    • StatusCode : It returns an API status code (like 200,201,500,401)
    • Success: It returns boolean value, (true/false)
    • data : it returns notification list
  • To Change Notification Read Status
    API Class : NotificationInteractor
    Method : changeNotificationStatus()
    Used to change the status of the notification from Un-read to Read.
    Request:
    • Request Object
    • Parameters
    • id: notification id in string format
    Response:
    • Response Object : IsReadNotification
    • Message: It is a simple string message
    • StatusCode : It returns an API status code (like 200,201,500,401)
    • Success: It returns boolean value, (true/false)
    • data : it return notification Read Data