PICO Platform Unity SDK
NotificationService Class Reference

Static Public Member Functions

static Task< RoomInviteNotificationListGetRoomInviteNotifications (int pageIdx, int pageSize)
 Gets a list of all pending room invites for your app. For example, notifications that may have been sent before the user launches your app. More...
 
static Task MarkAsRead (UInt64 notificationID)
 Marks a notification as read. More...
 

Member Function Documentation

◆ GetRoomInviteNotifications()

static Task< RoomInviteNotificationList > GetRoomInviteNotifications ( int  pageIdx,
int  pageSize 
)
inlinestatic

Gets a list of all pending room invites for your app. For example, notifications that may have been sent before the user launches your app.

Parameters
pageIdxDefines which page of pending room invites to return. The first page index is 0.
pageSizeDefines the number of pending room invites returned on each page.
Returns

Request information of type Task, including the request id, and its response message will contain data of type RoomInviteNotificationList.

A message of type MessageType.Notification_GetRoomInvites will be generated in response. First call message.IsError() to check if any error has occurred. If no error has occurred, the message will contain a payload of type RoomInviteNotificationList. Extract the payload from the message handle with message.Data.

◆ MarkAsRead()

static Task MarkAsRead ( UInt64  notificationID)
inlinestatic

Marks a notification as read.

Parameters
notificationIDThe ID of the notificaiton to mark.
Returns
Request information of type Task, including the request id, and its response message does not contain data. A message of type MessageType.Notification_MarkAsRead will be generated in response. Call message.IsError() to check if any error has occurred.