of

open fun of(recipient: GroupId, sender: UserId, message: NotificationMessage): GroupWisePushNotification

Factory method to create a new instance of PushNotificationCommand.

Return

a new instance of PushNotificationCommand.

Parameters

recipient

the GroupId to which the notification is to be sent.

sender

the UserId of the sender of the notification.

message

the NotificationMessage to be sent.