DeleteQueueNotificationSender

@Component
@EnableConfigurationProperties(value = [UserPreferencesProperties::class])
class DeleteQueueNotificationSender(applicationEventPublisher: ApplicationEventPublisher, userService: UserService, userQueueRepository: UserQueueRepository, notificationRepository: NotificationRepository, userPreferencesProperties: UserPreferencesProperties) : AbstractNotificationSender

Component for sending notification messages of type DELETE_QUEUE

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
open override fun notificationType(): NotificationType
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
open override fun User.subscribed(): Boolean