using Dfs.WayneChina.HengshanTerminalWrapper.MessageEntity.Base; using Edge.Core.Parser.BinaryParser.Attributes; namespace Dfs.WayneChina.HengshanTerminalWrapper.MessageEntity.Outgoing { /// /// 0FFH+03H+0A5H+55H+校验 /// 55H:成功,AA失败 /// public class StartResponse : NonCardDispenserMessageTemplateBase { public StartResponse() { CMD = 0xE5; } [Format(1,EncodingType.BIN, 3)] public int result { get; set; } public Result EnumResult { get { return result == 0x55 ? Result.成功 : Result.失败; } set { result = (value == Result.成功) ? 0x55 : 0xAA; } } } }