using System;

namespace MyHN.Domain
{
  public class Vote
  {
    public DateTime CreatedAt { get; }
    public string CreatedBy { get; }
    public VoteType Direction { get; internal set; }

    internal Vote(VoteType direction, string createdBy)
    {
      Direction = direction;
      CreatedAt = DateTime.UtcNow;
      CreatedBy = createdBy;
    }
  }
}