Abstract Notification Sender
abstract class AbstractNotificationSender(applicationEventPublisher: ApplicationEventPublisher, userService: UserService, userQueueRepository: UserQueueRepository, notificationRepository: NotificationRepository, obligatoryNotifications: List<NotificationType>) : NotificationSender
Abstract Service for preparing and sending notification messages
Inheritors
Constructors
Link copied to clipboard
constructor(applicationEventPublisher: ApplicationEventPublisher, userService: UserService, userQueueRepository: UserQueueRepository, notificationRepository: NotificationRepository, obligatoryNotifications: List<NotificationType>)
Functions
Link copied to clipboard
fun createNotification(recipientUserId: Long, participantUserId: Long, referredQueueId: Long): Notification
Link copied to clipboard
Link copied to clipboard
open fun prepareNotificationsListToSend(notificationMessageDto: NotificationMessageDto): List<Notification>
Link copied to clipboard
@Transactional
Saves notification into the database and sends it via firebase
Link copied to clipboard