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

namespace Valg.EVA.Skanning.Entity.ReadModel
{
    public class Transfer
    {
        public int Id { get; set; }
        public int CountingId { get; set; }
        public DateTime Created { get; set; }
        public DateTime? Updated { get; set; }
        public int TransferStateId { get; set; }
        public string ErrorCode { get; set; }
        public long? FileId { get; set; }
        public int? LatestTransferId { get; set; }

        public TransferState State
        {
            get { return TransferState.GetTransferStateFromId(TransferStateId); }
        }
    }
}

