AbstractNotificationSender

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
Link copied to clipboard
@Transactional
open override fun sendNotificationMessage(notificationMessageDto: NotificationMessageDto)

Saves notification into the database and sends it via firebase

Link copied to clipboard
abstract fun User.subscribed(): Boolean