refactor post reactions
This commit is contained in:
parent
2519fc77d2
commit
5379d29c5f
13 changed files with 129 additions and 97 deletions
|
@ -5,11 +5,13 @@ public class PostReaction
|
|||
public Guid AuthorId { get; private set; }
|
||||
public Guid PostId { get; private set; }
|
||||
public string Emoji { get; private set; } = null!;
|
||||
public DateTimeOffset CreatedAt { get; private set; }
|
||||
public PostReaction(Guid authorId, Guid postId, string emoji)
|
||||
{
|
||||
this.AuthorId = authorId;
|
||||
this.PostId = postId;
|
||||
this.Emoji = emoji;
|
||||
this.CreatedAt = TimeProvider.System.GetUtcNow();
|
||||
}
|
||||
|
||||
private PostReaction() { }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue