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