User notifications

User notifications

This resource represents notifications for the current user.

Operations


Get user notifications

Request all push notification configurations for current user by specified token and token type (see below table specification for value enumerations).  Type is always required but if Token is not specified then all push notification configurations will be returned for user which could span multiple tokens.

Request

Query parameters

 

The push token type.

GET /api/User/Notify?Token={pushToken}&Type={pushTokenType}


Create push notification

Request to set specific push notification configuration for current user.

Request

Field Name

Type

Description

Notes

Field Name

Type

Description

Notes

Type

int

Push Notification Token Type

0 = Undefined
1 = Firebase Cloud Messaging

Token

string

Push Notification Token

 

Enabled

bool

Notification is enabled

 

NotifyType

int

Notification Type

0 = Undefined
10 = Satellite Offline
11 = Machine Offline
12 = CoinBox Full
13 = Collection
25 = Machine Finished
33 = Machine Available
34 = Marketing
35 = Scheduled Tasks
36 = Work Scheduled

TriggerTime

int

Trigger time in minutes

May be NULL if n/a

ReminderTime

int

Reminder time in minutes

May be NULL if n/a

POST /api/User/Notify