Module

FriendNotification

This module is used to provide friend related notifications

View Source backend/Notification/notification.js, line 1

Methods

# static notifyFriendRequestAccepted(fromUser, toUser)

send notification indicating a user accepted a friend request
Parameters:
Name Type Description
fromUser * notification sender ( accepted user )
toUser * notification receiver ( accepter user )

View Source backend/Notification/notification.js, line 28

# static notifyFriendRequestDeclined(fromUser, toUser)

send notification indicating a user declined a friend request
Parameters:
Name Type Description
fromUser * notification sender ( declined used )
toUser * notification receiver ( declining user )

View Source backend/Notification/notification.js, line 38

# static notifyReceivedFriendRequest(fromUser, toUser)

send notification indicating a user received a friend request
Parameters:
Name Type Description
fromUser * notification sender
toUser * notification receiver

View Source backend/Notification/notification.js, line 18

# static notifyUnfriendFriend(fromUser, toUser)

send notification indicating a user unfriended a friend
Parameters:
Name Type Description
fromUser * unfriending user
toUser * unfriended user

View Source backend/Notification/notification.js, line 48