Module

NotificationController

This controller is in charge of handling actions relating to notifications

View Source backend/controllers/notificationController.js, line 1

Methods

# static addNotificationToUser()

Exposes the add notification function to other

View Source backend/controllers/notificationController.js, line 73

# static clearAllClearableNotifications()

View Source backend/controllers/notificationController.js, line 80

# static deleteNotificationFromCurrentUser()

View Source backend/controllers/notificationController.js, line 38

# static deleteNotificationFromUser()

Exposes deletion API to other part of the backend only

View Source backend/controllers/notificationController.js, line 31

# 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

View Source backend/controllers/notificationController.js, line 61

# inner deleteNotification(userId, notificationId)

Delets a notification with given id from given user
Parameters:
Name Type Description
userId * user id
notificationId * notification id

View Source backend/controllers/notificationController.js, line 16