using System;

namespace Domain
{
  public class Comment
  {
    public Guid Id { get; }
    public Guid LinkId { get; }
    public string Content { get; }
    public DateTime CreatedAt { get; }
    public Guid CreatedBy { get; }

    internal Comment(Guid linkId, Guid createdBy, string content)
    {
      Id = Guid.NewGuid();
      CreatedBy = createdBy;
      LinkId = linkId;
      Content = content;
      CreatedAt = DateTime.UtcNow;
    }
  }
}