Skip to content

Commit

Permalink
(#412) notifications: update post updated evnet
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintAngeLs committed Sep 16, 2024
1 parent e0c4661 commit 8aa77fd
Showing 1 changed file with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,30 @@
using Convey.CQRS.Events;
using Convey.MessageBrokers;
using System;

namespace MiniSpace.Services.Notifications.Application.Events.External
{
[Message("posts")]
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;
}
}
}
}

0 comments on commit 8aa77fd

Please sign in to comment.