18 lines
460 B
C#
18 lines
460 B
C#
namespace Socialize.Modules.Notifications.Contracts;
|
|
|
|
public record NotificationEventWriteModel(
|
|
Guid WorkspaceId,
|
|
Guid? ContentItemId,
|
|
string EventType,
|
|
string EntityType,
|
|
Guid EntityId,
|
|
string Message,
|
|
Guid? RecipientUserId,
|
|
string? RecipientEmail,
|
|
string? MetadataJson);
|
|
|
|
public interface INotificationEventWriter
|
|
{
|
|
Task WriteAsync(NotificationEventWriteModel model, CancellationToken cancellationToken = default);
|
|
}
|