-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#432) posts: core domain post class update, update events domain
- Loading branch information
1 parent
a7bb3cf
commit 0ecd203
Showing
2 changed files
with
56 additions
and
4 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
20 changes: 20 additions & 0 deletions
20
MiniSpace.Services.Posts/src/MiniSpace.Services.Posts.Core/Events/PostRepostedEvent.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,20 @@ | ||
using System; | ||
|
||
namespace MiniSpace.Services.Posts.Core.Events | ||
{ | ||
public class PostRepostedEvent : IDomainEvent | ||
{ | ||
public Guid PostId { get; } | ||
public Guid UserId { get; } | ||
public Guid OriginalPostId { get; } | ||
public DateTime RepostedAt { get; } | ||
|
||
public PostRepostedEvent(Guid postId, Guid userId, Guid originalPostId, DateTime repostedAt) | ||
{ | ||
PostId = postId; | ||
UserId = userId; | ||
OriginalPostId = originalPostId; | ||
RepostedAt = repostedAt; | ||
} | ||
} | ||
} |