using Valg.EVA.Skanning.Contracts.CommonEnums;

namespace Valg.EVA.Skanning.Contracts
{
    public static class BallotPaperTypeExtensions
    {
        public static bool IsGeneralBallotPaperType(this BallotPaperType ballotPaperType)
        {
            return (ballotPaperType == BallotPaperType.MunicipalityGeneral || 
                    ballotPaperType == BallotPaperType.CountyGeneral || 
                    ballotPaperType == BallotPaperType.OsloDistrictGeneral || 
                    ballotPaperType == BallotPaperType.ParliamentGeneral);
        }

        public static bool IsBlankBallotPaperType(this BallotPaperType ballotPaperType)
        {
            return (ballotPaperType == BallotPaperType.ParliamentBlank || 
                    ballotPaperType == BallotPaperType.MunicipalityBlank3 ||
                    ballotPaperType == BallotPaperType.MunicipalityBlank2 ||
                    ballotPaperType == BallotPaperType.CountyBlank2 ||
                    ballotPaperType == BallotPaperType.CountyBlank3 ||
                    ballotPaperType == BallotPaperType.OsloDistrictBlank);
        }
    }
}
