using Edge.Core.Parser.BinaryParser.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace LanTian_Sinopec_PumpIcCardReader
{
///
/// 加油机对 PC 机的普通查询命令
/// 功能:在加油机主动方式下,加油机定时与 PC 机进行的握手通讯;在 PC 机主动方式下,
///此命令无实际作用。
///
public class PumpStartDataDownloadRequest : KaJiLianDongV11MessageTemplateBase
{
///
/// 0:基础黑名单, 1:新增黑名单 2: 新删黑名单 3:白名单 4:油品油价表 5:油站通用信息 6:私有数据, 7:下载程序
///
[Format(1, EncodingType.BIN, 1)]
public PumpAskDataDownloadRequest.PumpAskDataDownloadType Content_内容 { get; set; }
///
/// 每段长16字节
///
[Format(2, EncodingType.BIN, 2)]
[Range(0,65535, "段偏移max 65535")]
public int S_OFFSET_段偏移 { get; set; }
///
/// 1到255 ,数据长度 segs*16
///
[Format(1, EncodingType.BIN, 3)]
public byte SEG_段数_segs { get; set; }
}
}