19 lines
416 B
C#
19 lines
416 B
C#
namespace HackerNet.Domain;
|
|
|
|
public class Comment
|
|
{
|
|
public Guid Id { get; }
|
|
public Guid LinkId { get; }
|
|
public string Content { get; }
|
|
public DateTime CreatedAt { get; }
|
|
public string CreatedBy { get; }
|
|
|
|
public Comment(string createdBy, Guid linkId, string content)
|
|
{
|
|
Id = Guid.NewGuid();
|
|
LinkId = linkId;
|
|
Content = content;
|
|
CreatedAt = DateTime.UtcNow;
|
|
CreatedBy = createdBy;
|
|
}
|
|
} |