-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#411) comments: uopdate add like events handler
- Loading branch information
1 parent
f41f4ab
commit 8095c79
Showing
2 changed files
with
29 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
MiniSpace.Services.Comments/src/MiniSpace.Services.Comments.Application/Events/LikeAdded.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using Convey.CQRS.Events; | ||
using System; | ||
|
||
namespace MiniSpace.Services.Comments.Application.Events | ||
{ | ||
public class LikeAdded : IEvent | ||
{ | ||
public Guid CommentId { get; } | ||
public Guid UserId { get; } | ||
public string CommentContext { get; } | ||
public DateTime LikedAt { get; } | ||
|
||
public LikeAdded(Guid commentId, Guid userId, string commentContext, DateTime likedAt) | ||
{ | ||
CommentId = commentId; | ||
UserId = userId; | ||
CommentContext = commentContext; | ||
LikedAt = likedAt; | ||
} | ||
} | ||
} |