using System.ComponentModel; using System.Reflection; namespace Entity.Constant; public class SwapConstant { /// /// 通讯类型 /// public enum CommunicationType { [Description("发送")] Send=1, [Description("接受")] Receive, } /// /// 步骤类型 /// public enum StepType { [Description("自动")] AUTO=1, [Description("手动")] MANUAL, } /// /// 换电plc 通讯 /// public enum PlcProtocol { [Description("初始化")] Init, [Description("下发启动换电")] StartSwap, } /// /// 雷达 通讯 /// public enum RadarProtocol { [Description("开启雷达")] Open, [Description("关闭雷达")] Close, [Description("车辆状态")] CarStatus, } /// /// Rfid 通讯 /// public enum RfidProtocol { [Description("连接Rfid")] Connect, [Description("开始读")] BeginRead, [Description("读取Rfid数据")] ReadRfidData, [Description("停止读Rfid")] StopRead, [Description("断开连接")] DisConnect, } /// /// Tbox 通讯 /// public enum TboxProtocol { [Description("心跳数据")] Heart, [Description("加锁")] Lock, [Description("解锁")] UnLock, } }