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

namespace Valg.EVA.Skanning.ServicesModel.ServiceContracts.CountResult.Write
{
    public class BoxCountingToLock
    {
        private readonly int boxCountingId;
        private readonly DateTime concurrencyToken;

        public BoxCountingToLock(int boxCountingId, DateTime concurrencyToken, string barcodeLong, string barcodeShort, BoxCountingState boxCountingState)
        {
            this.boxCountingId = boxCountingId;
            this.concurrencyToken = concurrencyToken;
            BarcodeShort = barcodeShort;
            BarcodeLong = barcodeLong;
            BoxCountingState = boxCountingState;
        }

        public int BoxCountingId
        {
            get { return boxCountingId; }
        }
        public DateTime ConcurrencyToken
        {
            get { return concurrencyToken; }
        }
        public string BarcodeLong { get; private set; }
        public string BarcodeShort { get; private set; }
        public BoxCountingState BoxCountingState { get; set; }
    }
}
