Other Notification Sender
@Component
Component for sending notification messages of type OTHER
Constructors
Link copied to clipboard
constructor(applicationEventPublisher: ApplicationEventPublisher, userService: UserService, userQueueRepository: UserQueueRepository, notificationRepository: NotificationRepository, userPreferencesProperties: UserPreferencesProperties)
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