NotificationService

io.github.positionpal.location.application.notifications.NotificationService
trait NotificationService[F[_]]

An outbound port for sending notifications to users.

Type parameters

F

the effect type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def sendToAllMembersSharingGroupWith(user: UserId, sender: UserId, message: NotificationMessage): F[Unit]

Send the given message to all users sharing a group with the given user on behalf of the sender user.

Send the given message to all users sharing a group with the given user on behalf of the sender user.

Attributes

def sendToGroup(recipient: GroupId, sender: UserId, message: NotificationMessage): F[Unit]

Send the given message to all members of the given recipient group on behalf of the sender user.

Send the given message to all members of the given recipient group on behalf of the sender user.

Attributes

Concrete methods

def sendToOwnGroup(scope: Scope, message: NotificationMessage): F[Unit]

Send the given message to all members of the group of the given scope on behalf of the scope user.

Send the given message to all members of the group of the given scope on behalf of the scope user.

Attributes