using System;
using Valg.EVA.Skanning.Contracts.CommonEnums;

namespace Valg.EVA.Skanning.Entity.ReadModel
{
    public class TransferDetails
    {
        public int Id { get; set; }
        public int CountingId { get; set; }
        public DateTime Created { get; set; }
        public int TransferStateId { get; set; }
        public string ErrorCode { get; set; }
        public int TotalVotes { get; set; }
        public int VerifiedVotes { get; set; }
        public int RejectedVotes { get; set; }
        
        public TransferState State
        {
            get { return TransferState.GetTransferStateFromId(TransferStateId); }
        }
    }
}
