|
|
|
using Entity.Attr;
|
|
|
|
using HybirdFrameworkCore.Attribute;
|
|
|
|
|
|
|
|
namespace Entity.Constant;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
///
|
|
|
|
/// </summary>
|
|
|
|
public class CloudEnum
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// 是否换电
|
|
|
|
/// </summary>
|
|
|
|
public enum WhetherToBattery : byte
|
|
|
|
{
|
|
|
|
[Const("可以开始换电")] Success = 1,
|
|
|
|
[Const("终止换电")] StopBattery = 2
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 尖峰平谷
|
|
|
|
/// </summary>
|
|
|
|
public enum PeriodNumber : int
|
|
|
|
{
|
|
|
|
[Const("尖")] Pointed = 1,
|
|
|
|
[Const("峰")] Peak = 2,
|
|
|
|
[Const("平")] Flat = 3,
|
|
|
|
[Const("谷")] Valley = 4
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 更新方式
|
|
|
|
/// </summary>
|
|
|
|
public enum RenewalMethod : int
|
|
|
|
{
|
|
|
|
[Const("覆盖所有记录")] Cover = 1,
|
|
|
|
[Const("增量更新")] Increment = 2
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 认证方式
|
|
|
|
/// </summary>
|
|
|
|
public enum AuthenticationMethod : int
|
|
|
|
{
|
|
|
|
[Const("车牌号")] VehicleNo = 1,
|
|
|
|
[Const("rfid")] RFID = 2
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 服务状态
|
|
|
|
/// </summary>
|
|
|
|
public enum ServiceStatus : int
|
|
|
|
{
|
|
|
|
[Const("未知")] Unknown = 0,
|
|
|
|
[Const("换电站服务启用")] Start = 1,
|
|
|
|
[Const("换电站服务停用")] Stop = 2
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 换电站类型
|
|
|
|
/// </summary>
|
|
|
|
public enum PowerStationType
|
|
|
|
{
|
|
|
|
// 单仓左
|
|
|
|
[Const("01")] Left,
|
|
|
|
|
|
|
|
// 单仓右
|
|
|
|
[Const("02")] Righ,
|
|
|
|
|
|
|
|
// 双仓
|
|
|
|
[Const("03")] Pair
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 应答结果
|
|
|
|
/// </summary>
|
|
|
|
public enum Result : byte
|
|
|
|
{
|
|
|
|
[Const("成功")] Success = 0,
|
|
|
|
[Const("失败")] Fail = 1
|
|
|
|
}
|
|
|
|
|
|
|
|
public enum ResultInt : byte
|
|
|
|
{
|
|
|
|
[Const("成功")] Success = 0,
|
|
|
|
[Const("失败")] Fail = 1
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 设备应答结果
|
|
|
|
/// </summary>
|
|
|
|
public enum EquipmentResult : int
|
|
|
|
{
|
|
|
|
[Const("成功")] Success = 0,
|
|
|
|
[Const("设备不存在")] NoEquipment = 1,
|
|
|
|
[Const("系统未找到对应的设备编码")] NoEquipmentCode = 2,
|
|
|
|
[Const("设备数量和后台不一致当")] ItSNotTheSame = 3,
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 签到应答结果
|
|
|
|
/// </summary>
|
|
|
|
public enum SignInResult : int
|
|
|
|
{
|
|
|
|
[Const("成功")] Success = 0,
|
|
|
|
[Const("设备不存在")] NoEquipment = 1,
|
|
|
|
[Const("非法设备")] Rogue = 2,
|
|
|
|
[Const("站控软件版本错误")] VersionError = 3,
|
|
|
|
[Const("协议版本错误")] ProtocolError = 4
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 车辆认证应答
|
|
|
|
/// </summary>
|
|
|
|
public enum VehicleAuthResult : int
|
|
|
|
{
|
|
|
|
[Const("成功")] Success = 0,
|
|
|
|
[Const("没找到匹配的车辆(未入网)")] NoVehicle = 1,
|
|
|
|
[Const("没有找到车辆匹配的 VIN")] NoVehicleVIN = 2,
|
|
|
|
[Const("车辆已经进入黑名单")] Blacklist = 3,
|
|
|
|
[Const("账户余额不足")] TheBalanceIsInsufficient = 4,
|
|
|
|
[Const("未预约")] NoAppointments = 5,
|
|
|
|
[Const("没有招到对应的 rfid 卡号")] NoRfid = 6
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 站内外鉴权方式
|
|
|
|
/// </summary>
|
|
|
|
public enum AuthMethod : int
|
|
|
|
{
|
|
|
|
[Const("站内鉴权(默认)")] InsideTheStation = 0,
|
|
|
|
[Const("站外")] OffSite = 1,
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 上传设备
|
|
|
|
/// </summary>
|
|
|
|
public enum UploadTheDevice : int
|
|
|
|
{
|
|
|
|
[Const("不需要上传")] NoUpload = 0,
|
|
|
|
[Const("需要重新上传")] AnewUpload = 1,
|
|
|
|
[Const("初始上传")] PrimaryUpload = 2
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 操作类型
|
|
|
|
/// </summary>
|
|
|
|
public enum OperationType : int
|
|
|
|
{
|
|
|
|
[Const("应答")] Response = 1,
|
|
|
|
[Const("请求")] Request = 2
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 加密方式
|
|
|
|
/// </summary>
|
|
|
|
public enum Encryption : int
|
|
|
|
{
|
|
|
|
[Const("不加密")] NoEncrypt = 0,
|
|
|
|
[Const("AES")] AES = 1
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 空调状态
|
|
|
|
/// </summary>
|
|
|
|
public enum AirConditioningStatus : byte
|
|
|
|
{
|
|
|
|
[Const("停机")] Stop = 0,
|
|
|
|
[Const("开启")] Open = 1,
|
|
|
|
[Const("运行")] Run = 2
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 空调模式
|
|
|
|
/// </summary>
|
|
|
|
public enum AirConditioningMode : byte
|
|
|
|
{
|
|
|
|
[Const("制冷")] Refrigeration = 1,
|
|
|
|
[Const("制热")] Heating = 2,
|
|
|
|
[Const("其他")] Other = 3
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 工作状态
|
|
|
|
/// </summary>
|
|
|
|
public enum WorkingStatus : int
|
|
|
|
{
|
|
|
|
[Const("未知")] Unknown = 0,
|
|
|
|
[Const("空闲")] FreeTime = 1,
|
|
|
|
[Const("工作中")] Work = 2,
|
|
|
|
[Const("工作完成")] WorkDone = 3,
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 换电状态
|
|
|
|
/// </summary>
|
|
|
|
public enum BatterySwapStatus : int
|
|
|
|
{
|
|
|
|
[Const("未知")] Unknown = 0,
|
|
|
|
[Const("空闲")] FreeTime = 1,
|
|
|
|
[Const("占位")] Occupancy = 2,
|
|
|
|
[Const("换电准备")] PrepareForBatterySwapping = 3,
|
|
|
|
[Const("换电开始")] TheBatterySwapBegins = 4,
|
|
|
|
[Const("换电中")] BatterySwapping = 5,
|
|
|
|
[Const("换电完成")] TheBatterySwapIsComplete = 6,
|
|
|
|
[Const("换电中故障,等待修复")] TheFaultIsToBeFixed = 7,
|
|
|
|
[Const("换电中故障,修复完成")] TheFaultFixIsComplete = 8,
|
|
|
|
[Const("换电暂停")] TheBatterySwapIsSuspended = 9,
|
|
|
|
[Const("换电继续")] TheBatterySwapContinues = 10,
|
|
|
|
[Const("换电完成,车辆未驶离")] TheBatterySwapWasCompletedAndDidNotLeave = 11,
|
|
|
|
[Const("换电完成,车辆驶离")] FinishDrivingAwayTheVehicle = 12
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 是否有车
|
|
|
|
/// </summary>
|
|
|
|
public enum WhetherThereIsACarOrNot : int
|
|
|
|
{
|
|
|
|
[Const("未知")] Unknown = 0,
|
|
|
|
[Const("有车")] HaveVehicle = 1,
|
|
|
|
[Const("无车")] NoVehicle = 2,
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 锁止状态
|
|
|
|
/// </summary>
|
|
|
|
public enum LockedState : int
|
|
|
|
{
|
|
|
|
[Const("未知")] Unknown = 0,
|
|
|
|
[Const("加锁状态")] LockedStatus = 1,
|
|
|
|
[Const("解锁状态")] UnlockStatus = 2,
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 故障等级
|
|
|
|
/// </summary>
|
|
|
|
public enum FailureLevel : int
|
|
|
|
{
|
|
|
|
[Const("正常")] Normal = 0,
|
|
|
|
[Const("故障等级一")] FaultLevelOne = 1,
|
|
|
|
[Const("故障等级二")] FaultLeveTwo = 2,
|
|
|
|
[Const("故障等级三")] FaultLeveThree = 3,
|
|
|
|
[Const("故障等级四")] FaultLeveFour = 4,
|
|
|
|
[Const("故障等级五")] FaultLeveFive = 5,
|
|
|
|
[Const("故障等级六")] FaultLeveSix = 6
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 运行方式
|
|
|
|
/// </summary>
|
|
|
|
public enum EscalationMethod : int
|
|
|
|
{
|
|
|
|
[Const("自动")] Automatic = 1,
|
|
|
|
[Const("人工手动")] Manual = 2
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 充电方式
|
|
|
|
/// </summary>
|
|
|
|
public enum ChargingMethod : int
|
|
|
|
{
|
|
|
|
[Const("站内充电")] OnSiteCharging = 0,
|
|
|
|
[Const("站外充电")] ChargingOffSite = 1
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 运营状态
|
|
|
|
/// </summary>
|
|
|
|
public enum OperationalStatus : int
|
|
|
|
{
|
|
|
|
[Const("营业状态")] BusinessStatus = 1,
|
|
|
|
[Const("暂停营业状态")] TemporarilyClosed = 2,
|
|
|
|
[Const("设备维护状态")] DeviceMaintenanceStatus = 3,
|
|
|
|
[Const("歇业状态")] ClosedStatus = 4
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 订单取消
|
|
|
|
/// </summary>
|
|
|
|
public enum OrderCancellation : byte
|
|
|
|
{
|
|
|
|
[Const("正常")] Normal = 0,
|
|
|
|
[Const("取消")] Cancel = 1
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 是否成功换电
|
|
|
|
/// </summary>
|
|
|
|
public enum WhetherTheBatterySwapIsSuccessful : byte
|
|
|
|
{
|
|
|
|
[Const("失败")] Fail = 0,
|
|
|
|
[Const("成功")] Success = 1
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 换电结果
|
|
|
|
/// </summary>
|
|
|
|
public enum BatterySwapResults : byte
|
|
|
|
{
|
|
|
|
[Const("正常")] Normal = 0,
|
|
|
|
[Const("失败")] Fail = 1
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 是否是离线订单
|
|
|
|
/// </summary>
|
|
|
|
public enum OrderType : int
|
|
|
|
{
|
|
|
|
[Const("不是")] No = 0,
|
|
|
|
[Const("是")] Yes = 1
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 电池预约
|
|
|
|
/// </summary>
|
|
|
|
public enum BatteryAppointments : int
|
|
|
|
{
|
|
|
|
[Const("预约电池失败")] Fail = 1,
|
|
|
|
[Const("换电站无电池可预约")] NoBattery = 2,
|
|
|
|
[Const("预约成功")] Success = 2
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 换电请求应答
|
|
|
|
/// </summary>
|
|
|
|
public enum AnsweringTheBatterySwapRequest : int
|
|
|
|
{
|
|
|
|
[Const("换电请求成功")] TheBatterySwapRequestIsSuccessful = 1,
|
|
|
|
[Const("换电请求失败")] TheBatterySwapRequestFailed = 2,
|
|
|
|
[Const("取消换电请求成功")] CancelTheBatterySwapRequestIsSuccessful = 3,
|
|
|
|
[Const("取消换电请求失败")] TCancelheBatterySwapRequestFailed = 2
|
|
|
|
}
|
|
|
|
}
|