23 lines
475 B
C#
23 lines
475 B
C#
using System;
|
|
|
|
namespace MyHN.Domain
|
|
{
|
|
/// <summary>
|
|
/// Représente un commentaire associé à un lien.
|
|
/// </summary>
|
|
public class Comment : Votable
|
|
{
|
|
public Guid Id { get; }
|
|
public Guid LinkId { get; }
|
|
public string Content { get; }
|
|
public DateTime CreatedAt { get; }
|
|
|
|
internal Comment(Guid linkId, string content)
|
|
{
|
|
Id = Guid.NewGuid();
|
|
LinkId = linkId;
|
|
Content = content;
|
|
CreatedAt = DateTime.UtcNow;
|
|
}
|
|
}
|
|
} |