using Valg.EVA.Skanning.ServicesModel.ServiceContracts.Count.Read;

namespace Valg.EVA.Skanning.ServicesModel.Internal
{
    public class CountingMapper
    {
        public static Counting MapCounting(Entity.ReadModel.Counting fromCounting)
        {
            return new Counting()
            {
                Id = fromCounting.Id,
                CountingType = fromCounting.CountingType,
                EmlAreaContextId = fromCounting.EmlAreaContextId,
                UniqueId = fromCounting.UniqueId,
                CountingEmlAreaContextId = fromCounting.CountingEmlAreaContextId,
                CountNumber = fromCounting.CountNumber,
                Modified = fromCounting.Modified,
                ElectionGroup = fromCounting.ElectionGroup,
                ElectionIdentifier = fromCounting.ElectionIdentifier,
                ElectionEventId = fromCounting.ElectionEventId,
                CountingState = fromCounting.CountingState,
                ContestId = fromCounting.ContestId,
                VotingCategory = fromCounting.VotingCategory,
                IsProcessedInEmergencyMode = fromCounting.IsProcessedInEmergencyMode
            };
        }
    }
}
