This controller is in charge of handling actions relating to notifications
Methods
# static addNotificationToUser()
Exposes the add notification function to other
# static clearAllClearableNotifications()
# static deleteNotificationFromCurrentUser()
# static deleteNotificationFromUser()
Exposes deletion API to other part of the backend only
# inner AddNotification(userId, notification, popupText)
Adds a new notification to a specified user with an optional popup
Parameters:
Name | Type | Description |
---|---|---|
userId |
* | id of the user to send to |
notification |
* | notification object |
popupText |
* | optional text to pop up on the user screen |
# inner deleteNotification(userId, notificationId)
Delets a notification with given id from given user
Parameters:
Name | Type | Description |
---|---|---|
userId |
* | user id |
notificationId |
* | notification id |