BasicNotificationPublisher

A basic implementation of NotificationPublisher encapsulating the strategy logic to send notifications.

Constructors

Link copied to clipboard
constructor(groupsRepository: GroupsRepository)

Functions

Link copied to clipboard
abstract suspend fun send(message: NotificationMessage, userIds: Set<UserId>)

Sends the given message to the specified userIds.

open infix suspend override fun send(notificationMessage: NotificationMessage): PublishingTargetStrategy

DSL entry point to send the given notificationMessage to users. The client is expected to chain this with one of the PublishingTargetStrategy's method to specify who will receive the notification.