From 8aa77fd48f2078380a19bf29a295277f8371e2da Mon Sep 17 00:00:00 2001 From: Andrii Voznesenskyi Date: Mon, 16 Sep 2024 18:45:17 +0200 Subject: [PATCH] (#412) notifications: update post updated evnet --- .../Events/External/Posts/PostUpdated.cs | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/MiniSpace.Services.Notifications/src/MiniSpace.Services.Notifications.Application/Events/External/Posts/PostUpdated.cs b/MiniSpace.Services.Notifications/src/MiniSpace.Services.Notifications.Application/Events/External/Posts/PostUpdated.cs index 015168d17..c984e680d 100644 --- a/MiniSpace.Services.Notifications/src/MiniSpace.Services.Notifications.Application/Events/External/Posts/PostUpdated.cs +++ b/MiniSpace.Services.Notifications/src/MiniSpace.Services.Notifications.Application/Events/External/Posts/PostUpdated.cs @@ -1,5 +1,6 @@ using Convey.CQRS.Events; using Convey.MessageBrokers; +using System; namespace MiniSpace.Services.Notifications.Application.Events.External { @@ -7,10 +8,23 @@ namespace MiniSpace.Services.Notifications.Application.Events.External public class PostUpdated : IEvent { public Guid PostId { get; } + public Guid? UserId { get; } + public Guid? OrganizationId { get; } + public Guid? EventId { get; } + public string TextContent { get; } + public string Context { get; } + public bool ShouldNotify { get; } - public PostUpdated(Guid postId) + public PostUpdated(Guid postId, Guid? userId, Guid? organizationId, + Guid? eventId, string textContent, string context, bool shouldNotify) { PostId = postId; + UserId = userId; + OrganizationId = organizationId; + EventId = eventId; + TextContent = textContent; + Context = context; + ShouldNotify = shouldNotify; } } -} \ No newline at end of file +}