using Edge.Core.Parser.BinaryParser.Attributes;
using System;
using System.Collections.Generic;
using System.Text;

namespace Dfs.WayneChina.GilbarcoDispenserPayTerminal.MessageEntities.Outgoing
{

    /// <summary>
    /// PC => Pump
    /// </summary>
    public class CheckCommand : CardMessageBase
    {
        public CheckCommand() : base(HandleType.Check)
        {
        }

        [Format(7, EncodingType.BcdString, -94)]
        public long Time { get; set; }

        [Format(2, EncodingType.BIN, -93)]
        public ushort BaseBlacklistVersion { get; set; }

        [Format(1, EncodingType.BIN, -92)]
        public byte AddBlacklistVersion { get; set; }

        [Format(1, EncodingType.BIN, -91)]
        public byte DeleteBlacklistVersion { get; set; }

        [Format(1, EncodingType.BIN, -90)]
        public byte WhitelistVersion { get; set; }

        [Format(1, EncodingType.BIN, -89)]
        public byte PriceVersion { get; set; }

        [Format(1, EncodingType.BIN, -88)]
        public byte StationGeneralInfoVersion { get; set; }

        [Format(1, EncodingType.BIN, -87)]
        public byte PrivateDataDownloadFlag { get; set; }

        [Format(1, EncodingType.BIN, -86)]
        public byte SoftwareDownloadFlag { get; set; }
    }
}