References

TerraCore v0

Notification#

NameMandatoryTypeDescription
idyesIntId of the notification
isReadyesBoolWhether the notification is read
titleyesStringTitle of the notificaton
messageyesStringMessage of the notificaton
linkyesStringCheck out Notification's link more details
senderyesStringSender service of the notification
createdAtyesDateTimeCreated time of the notification
updatedAtyesStringLast updated time service of the notification
imageUrlnoStringImage url of the notication

Notification's link#

link is formatted as a JSON string of an object containing additional information for the message to:

  • Show more details about in-app notifications.
  • Define the corresponding action when clicking on the notification on the application. The information is defined by the services, that will send notifications to the app, with the object format as below.
NameMandatoryTypeDescriptionExample
typeyesStringType of the notification"noti"
datayesObjectCorresponding data with type

Object data for type = "noti": used to open deeplink when clicking the notifications.

NameMandatorytypeDescriptionExample
deeplinkyesStringLink to the corresponding web/screen of the notificationhttps://terra.teko.vn/

For example: {\"type\":\"noti\",\"data\":{\"deeplink\": \"https://terra.teko.vn\"}}

Notification List Result#

NameMandatoryTypeDescription
notificationsyesList<Notification>Notification List
unreadNotificationsCountyesBoolThe number of unread notification in the all notifications
paginationnoPaginationPagination info

Pagination#

NameMandatoryTypeDescription
totalItemsyesIntThe number of total items
currentPageyesIntCurrent page
pageSizeyesIntPage size