Package io.meeds.chat.service
Class ChatNotificationService
java.lang.Object
io.meeds.chat.service.ChatNotificationService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateMentionNotification(String eventId, String roomId, String userName) Creates a web/Mail notification for mentions in space Chat roomsio.meeds.pwa.model.PwaNotificationMessagecreateNotification(MatrixMessage message, String userName) Creates a notification based on the received messageio.meeds.pwa.model.PwaNotificationMessagecreateNotification(String eventId, String roomId, String userName, String token) Creates a PWA notification based on the event detailssendCreateNotificationAction(String eventId, String userName, String roomId, int unreadCount) Sends a notification Creation request to the Push service on the browser based on the event contents
-
Field Details
-
IN_KEY
-
-
Constructor Details
-
ChatNotificationService
public ChatNotificationService()
-
-
Method Details
-
sendCreateNotificationAction
public ScheduledFuture<?> sendCreateNotificationAction(String eventId, String userName, String roomId, int unreadCount) Sends a notification Creation request to the Push service on the browser based on the event contents- Parameters:
eventId-userName-roomId-unreadCount-- Returns:
-
createNotification
public io.meeds.pwa.model.PwaNotificationMessage createNotification(MatrixMessage message, String userName) Creates a notification based on the received message- Parameters:
message- the received messageuserName- the user who will receive the notification- Returns:
- a PWA push notification object
-
createNotification
public io.meeds.pwa.model.PwaNotificationMessage createNotification(String eventId, String roomId, String userName, String token) Creates a PWA notification based on the event details- Parameters:
eventId- the event IdroomId- the room IDuserName- the user who received the notification- Returns:
- notification object
-
createMentionNotification
Creates a web/Mail notification for mentions in space Chat rooms- Parameters:
eventId- the event IDroomId- the room ID
-