云平台,msg 4.2.1已写完。未继承和检查

master
CZ 6 months ago committed by ydh
parent 5769c3db0d
commit f1353af778

@ -6,6 +6,37 @@ public class CloudConst
public static readonly string signIn = "signIn";
public static readonly string signInRes = "signInRes";
public static readonly string carAuth = "carAuth";
public static readonly string carAuthRes = "carAuthRes";
public static readonly string carCanStart = "carCanStart";
public static readonly string carCanStartRes = "carCanStartRes";
/// <summary>
/// 2 换电车辆数据上报
/// </summary>
public static readonly string CardataReport = "CardataReport";
public static readonly string CardataReportRes = "CardataReportRes";
public static readonly string setStBaseInfo = "setStBaseInfo";
public static readonly string setStBaseInfoRes = "setStBaseInfoRes";
public static readonly string devList = "devList";
public static readonly string setServiceRes = "setServiceRes";
public static readonly string devListRep = "devListRep";
public static readonly string setService = "setService";
public static readonly string setOpTime = "setOpTime";
public static readonly string setOpTimeRes = "setOpTimeRes";
public static readonly string setOpModel = "setOpModel";
public static readonly string setOpModelRes = "setOpModelRes";
public static readonly string setStaPrice = "setStaPrice";
public static readonly string setStaPriceRes = "setStaPriceRes";
public static readonly string setChargePrice = "setChargePrice";
public static readonly string setChargePriceRes = "setChargePriceRes";
public static readonly string setChangeCarData = "setChangeCarData";
public static readonly string setChangeCarDataRes = "setChangeCarDataRes";
public static readonly string setConfig = "setConfig";
public static readonly string setConfigRes = "setConfigRes";
public static readonly string getConfig = "getConfig";
public static readonly string getConfigRes = "getConfigRes";
public static readonly string staSwapRecord = "staSwapRecord";
public static readonly string staSwapRecordRes = "staSwapRecordRes";
public static readonly string amtBat = "amtBat";
public static readonly string amtBatRes = "amtBatRes";

@ -0,0 +1,44 @@
using Service.Cloud.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Service.Cloud.Msg.Cloud.Req
{
/// <summary>
/// 3.2.7.1 后台服务器下发换电站的电池运营模型
/// </summary>
public class BatteryOperatingModel
{
/// <summary>
/// 运营模型ID
/// </summary>
public int oid { get; set; }
/// <summary>
/// 更新时间
/// </summary>
public string ut { get; set; }
/// <summary>
/// 开始时段
/// </summary>
public string st { get; set; }
/// <summary>
/// 结束时段
/// </summary>
public string et { get; set; }
/// <summary>
/// 该时段需要的电池类型编 号
/// </summary>
public string btc { get; set; }
/// <summary>
/// 该时段需要的电池数量
/// </summary>
public int bc { get; set; }
public string GetCmd()
{
return CloudConst.setOpModel;
}
}
}

@ -0,0 +1,38 @@
using Service.Cloud.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Service.Cloud.Msg.Cloud.Req
{
/// <summary>
/// 3.2.6.1 后台服务器设置换电站的营业时段
/// </summary>
public class BusinessHour
{
/// <summary>
/// 更新时间
/// </summary>
public string ut { get; set; }
public string sn { get; set; }//TODO::此字段在示例中,未标明含义
public List<SEG> seg = new();
public string GetCmd()
{
return CloudConst.setOpTime;
}
}
public class SEG
{
/// <summary>
/// 营业的开始时间
/// </summary>
public string st { get; set; }
/// <summary>
/// 营业的结束时间
/// </summary>
public string et { get; set; }
}
}

@ -0,0 +1,52 @@
using Service.Cloud.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Service.Cloud.Msg.Cloud.Req
{
/// <summary>
///
/// </summary>
public class ChargerElectricityPriceModel
{
/// <summary>
/// 更新时间
/// </summary>
public string ut { get; set; }
/// <summary>
/// 电价模型id
/// </summary>
public int ceid { get; set; }
public List<Seg> seg = new();
public string GetCmd()
{
return CloudConst.setChargePrice;
}
}
public class Seg
{
/// <summary>
/// 电价
/// </summary>
public float ep { get; set; }
/// <summary>
/// 开始时段
/// </summary>
public DateTime st { get; set; }
/// <summary>
/// 结束时段
/// </summary>
public DateTime et { get; set; }
/// <summary>
/// 时段序号
/// </summary>
public int pr { get; set; }
}
}

@ -0,0 +1,94 @@
using Service.Cloud.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Service.Cloud.Msg.Cloud.Req
{
/// <summary>
/// 3.2.3.1 后台服务器下发换电站的基础信息
/// </summary>
public class DeliverBasicInformation
{
/// <summary>
/// 电站编码
/// </summary>
public string sn { get; set; }
/// <summary>
/// 换电站名称
/// </summary>
public string Sm { get; set; }
/// <summary>
/// 换电站识别号
/// </summary>
public string SS { get; set; }
/// <summary>
/// 地理位置
/// </summary>
public string sl { get; set; }
/// <summary>
/// 换电站类型
/// </summary>
public string st { get; set; }
/// <summary>
/// 经度
/// </summary>
public string ld { get; set; }
/// <summary>
/// 纬度
/// </summary>
public string lt { get; set; }
/// <summary>
/// 区域编号
/// </summary>
public string ac { get; set; }
/// <summary>
/// 区域名称
/// </summary>
public string am { get; set; }
/// <summary>
/// 营运时间
/// </summary>
public DateTime ot { get; set; }
///投放时间
public DateTime lm { get; set; }
/// <summary>
/// 联系方式
/// </summary>
public string cw { get; set; }
/// <summary>
/// 负责人
/// </summary>
public string pp { get; set; }
/// <summary>
/// 所属运营企业
/// </summary>
public string sc { get; set; }
/// <summary>
/// 所属运营企业统一社 会信用代码
/// </summary>
public string cc { get; set; }
/// <summary>
/// 站控主机软件版本号
/// </summary>
public string sv { get; set; }
/// <summary>
/// 供应商代码
/// </summary>
public string sp { get; set; }
/// <summary>
/// 封面图片文件id
/// </summary>
public long cb { get; set; }
/// <summary>
/// 换电站基础信息版本号
/// </summary>
public string bs { get; set; }
public string GetCmd()
{
return CloudConst.setStBaseInfo;
}
}
}

@ -0,0 +1,42 @@
using Service.Cloud.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Service.Cloud.Msg.Cloud.Req
{
/// <summary>
/// 3.2.8.1 后台服务器下发换电站的电价模型
/// </summary>
public class ElectricityPriceModel
{
/// <summary>
/// 计费模型ID
/// </summary>
public int eid { get; set; }
/// <summary>
/// 更新时间
/// </summary>
public string ut { get; set; }
/// <summary>
/// 开始时段
/// </summary>
public string st { get; set; }
/// <summary>
/// 结束时段
/// </summary>
public string et { get; set; }
/// <summary>
/// 换电服务单价
/// </summary>
public double pr { get; set; }
public string GetCmd()
{
return CloudConst.setStaPrice;
}
}
}

@ -0,0 +1,62 @@
using Service.Cloud.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Service.Cloud.Msg.Cloud.Req
{
/// <summary>
/// 3.2.10.1 后台服务器下发离线换电车辆数据
/// </summary>
public class OfflinePowerOnVehicleData
{
/// <summary>
/// 更新方式
/// </summary>
public int um { get; set; }
public List<Data> data { get; set; }
public string GetCmd()
{
return CloudConst.setChangeCarData;
}
}
public class Data
{
/// <summary>
/// 时段序号
/// </summary>
public int pr { get; set; }
/// <summary>
/// 车辆VIN
/// </summary>
public string vin { get; set; }
/// <summary>
/// mac地址
/// </summary>
public string mac { get; set; }
/// <summary>
/// 认证方式
/// </summary>
public int ty { get; set; }
/// <summary>
/// 车牌号
/// </summary>
public string cn { get; set; }
/// <summary>
/// 所属车队
/// </summary>
public string mc { get; set; }
/// <summary>
/// 生效时间
/// </summary>
public DateTime st { get; set; }
/// <summary>
/// 失效时间
/// </summary>
public DateTime et { get; set; }
}
}

@ -0,0 +1,24 @@
using Service.Cloud.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Service.Cloud.Msg.Cloud.Req
{
/// <summary>
/// 3.2.12.1 后台服务器下发参数获取
/// </summary>
public class ParameterAcquisition
{
/// <summary>
/// 自定义
/// </summary>
public string param { get; set; }
public string GetCmd()
{
return CloudConst.getConfig;
}
}
}

@ -0,0 +1,36 @@
using Service.Cloud.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Service.Cloud.Msg.Cloud.Req
{
/// <summary>
/// 1 云平台下发车辆开始换电指令
/// </summary>
public class PowerChangeCommand
{
/// <summary>
/// 订单号
/// </summary>
public string on { get; set; }
/// <summary>
/// 车辆所在的换电 通道
/// </summary>
public int en { get; set; }
/// <summary>
/// 车牌号
/// </summary>
public string cn { get; set; }
/// <summary>
/// 是否开始换电
/// </summary>
public byte cs { get; set; }
public string GetCmd()
{
return CloudConst.carCanStart;
}
}
}

@ -0,0 +1,25 @@
using Service.Cloud.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Service.Cloud.Msg.Cloud.Req
{
/// <summary>
/// 3.2.5.1 后台服务器下发换电站的可服务状态设置
/// </summary>
public class ServiceableState
{
/// <summary>
/// 服务状态
/// </summary>
public int st{get;set;}
public string GetCmd()
{
return CloudConst.setServiceRes;
}
}
}

@ -0,0 +1,37 @@
using Service.Cloud.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
namespace Service.Cloud.Msg.Cloud.Req
{
/// <summary>
/// 3.2.11.1 后台服务器下发设置配置参数
/// </summary>
public class SetConfigurationParameters
{
/// <summary>
/// 可换 soc 阈值
/// </summary>
public char chsoc { get; set; }
/// <summary>
/// 换电收费模型id
/// </summary>
public int eid { get; set; }
/// <summary>
/// 电池运营模型 id
/// </summary>
public string oid { get; set; }
/// <summary>
/// 充电电接模型 id
/// </summary>
public int ceid { get; set; }
public string GetCmd()
{
return CloudConst.setConfig;
}
}
}

@ -0,0 +1,28 @@
using Service.Cloud.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Service.Cloud.Msg.Cloud.Resp
{
/// <summary>
/// 3.2.4. 2 后台应答/请求设备列表上报
/// </summary>
public class ReportingDeviceListResp
{
/// <summary>
/// 操作类型
/// </summary>
public int ot { get; set; }
/// <summary>
/// 应答结果
/// </summary>
public int re { get; set; }
public string GetCmd()
{
return CloudConst.devListRep;
}
}
}

@ -4,9 +4,21 @@ namespace Service.Cloud.Msg.Cloud.Resp;
public class SignInResp : ICmd
{
/// <summary>
/// 应答结果
/// </summary>
public int re { get; set; }
/// <summary>
/// 是否需要上次设备列表
/// </summary>
public int dl_up { get; set; }
/// <summary>
/// 云平台系统时间
/// </summary>
public DateTime ti { get; set; }
/// <summary>
/// 加密方式
/// </summary>
public int ew { get; set; }
public string GetCmd()

@ -0,0 +1,29 @@
using Service.Cloud.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Service.Cloud.Msg.Cloud.Resp
{
/// <summary>
///
/// </summary>
public class UploadPowerChangeOrderResp
{
/// <summary>
/// 应答结果
/// </summary>
public int re { get; set; }
/// <summary>
/// 失败原因
/// </summary>
public int fr { get; set; }
public string GetCmd()
{
return CloudConst.staSwapRecordRes;
}
}
}

@ -0,0 +1,52 @@
using Service.Cloud.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Service.Cloud.Msg.Cloud.Resp
{
/// <summary>
/// 2.1.1.2 后台应答换电站车辆认证的结果
/// </summary>
public class VehicleCertificationResp
{
/// <summary>
/// 应答结果
/// </summary>
public int re { get; set; }
/// <summary>
/// 认证方式
/// </summary>
public int ty { get; set; }
/// <summary>
/// 车牌号
/// </summary>
public string cn { get; set; }
/// <summary>
/// 卡号
/// </summary>
public string rfid { get; set; }
/// <summary>
/// 车辆识别号
/// </summary>
public string vi { get; set; }
/// <summary>
/// 订单号
/// </summary>
public string on { get; set; }
/// <summary>
/// Mac 地址
/// </summary>
public string mac { get; set; }
/// <summary>
/// 站内外鉴权方式
/// </summary>
public int mode { get; set; }
public string GetCmd()
{
return CloudConst.carAuthRes;
}
}
}

@ -0,0 +1,24 @@
using Service.Cloud.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Service.Cloud.Msg.Cloud.Resp
{
/// <summary>
/// 2.1.3.3 云平台反馈换电车辆数据上报
/// </summary>
public class VehicleDataReportingResp
{
/// <summary>
/// 接收结果
/// </summary>
public byte re { get; set; }
public string GetCmd()
{
return CloudConst.CardataReportRes;
}
}
}

@ -0,0 +1,80 @@
using Service.Cloud.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Service.Cloud.Msg.Host.Req
{
/// <summary>
/// 3.2.4 换电站上报设备列表
/// </summary>
public class ReportingDeviceList
{
public int ot { get; set; }
public string sn { get; set; }
public string vs { get; set; }
public List<D_INFO> d_info = new();
public string GetCmd()
{
return CloudConst.devList;
}
}
public class D_INFO
{
/// <summary>
/// 设备名称
/// </summary>
public string dn { get; set; }
/// <summary>
/// 设备类型名称
/// </summary>
public string dt { get; set; }
/// <summary>
/// 设备类型代码
/// </summary>
public string dc { get; set; }
/// <summary>
/// 类型代码
/// </summary>
public string tc { get; set; }
/// <summary>
/// 设备流水号
/// </summary>
public string ds { get; set; }
/// <summary>
/// 设备编号
/// </summary>
public string sn { get; set; }
/// <summary>
/// 设备型号
/// </summary>
public string en { get; set; }
/// <summary>
/// 设备硬件版本
/// </summary>
public string hv { get; set; }
/// <summary>
/// 设备软件版本
/// </summary>
public string sv { get; set; }
/// <summary>
/// 生产厂家 manufacturer
/// </summary>
public string mn { get; set; }
/// <summary>
/// 安装位置 install_site
/// </summary>
public string ns { get; set; }
/// <summary>
/// 安装时间
/// </summary>
public string ti { get; set; }
}
}

@ -4,11 +4,71 @@ namespace Service.Cloud.Msg.Host.Req;
public class SignIn : ICmd
{
/// <summary>
/// 换电站编码
/// </summary>
public string sn { get; set; }
/// <summary>
/// 供应商识别码
/// </summary>
public string ky { get; set; }
/// <summary>
/// 换电站类型
/// </summary>
public string st { get; set; }
/// <summary>
/// 设备型号
/// </summary>
public string dv { get; set; }
/// <summary>
/// 软件版本
/// </summary>
public string sv { get; set; }
/// <summary>
/// 换电站服务状态
/// </summary>
public int ss { get; set; }
/// <summary>
/// 换电站配电容量
/// </summary>
public float ca { get; set; }
/// <summary>
/// 设备列表配置版本 号
/// </summary>
public string VS { get; set; }
/// <summary>
/// 充电功率
/// </summary>
public int cp { get; set; }
/// <summary>
/// 换电站基础信息版 本号
/// </summary>
public string bs { get; set; }
/// <summary>
/// 经度
/// </summary>
public string lo { get; set; }
/// <summary>
/// 纬度
/// </summary>
public string la { get; set; }
/// <summary>
/// 换电通道数量
/// </summary>
public int en { get; set; }
/// <summary>
/// 充电机(仓)数量
/// </summary>
public int cn { get; set; }
/// <summary>
/// 电价模型id
/// </summary>
public int eid { get; set; }
/// <summary>
/// 电池运营模型id
/// </summary>
public int oid { get; set; }
public string GetCmd()
{

@ -0,0 +1,190 @@
using Service.Cloud.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Service.Cloud.Msg.Host.Req
{
/// <summary>
/// 4.2.1.1 换电上传换电订单
/// </summary>
public class UploadPowerChangeOrder
{
/// <summary>
/// 换电站编码
/// </summary>
public string sn { get; set; }
/// <summary>
/// 换电订单号
/// </summary>
public string son { get; set; }
/// <summary>
/// 订单是否取消
/// </summary>
public byte od { get; set; }
/// <summary>
/// 是否成功换电
/// </summary>
public byte ic { get; set; }
/// <summary>
/// 换电结果
/// </summary>
public byte rs { get; set; }
/// <summary>
/// 失败原因
/// </summary>
public byte fr { get; set; }
/// <summary>
/// 车牌号
/// </summary>
public string cn { get; set; }
/// <summary>
/// 车辆VIN码
/// </summary>
public string vin { get; set; }
/// <summary>
/// rfid卡号
/// </summary>
public string rfid { get; set; }
/// <summary>
/// 所属车队
/// </summary>
public string mC { get; set; }
/// <summary>
/// 出仓安装电池序列号
/// </summary>
public string dbid { get; set; }
/// <summary>
/// 出仓安装电池SOC
/// </summary>
public int dsoc { get; set; }
/// <summary>
/// 取车电池上次换电结算时 的SOC
/// </summary>
public int lsoc { get; set; }
/// <summary>
/// 出仓安装电池的SOE
/// </summary>
public float dsoe { get; set; }
/// <summary>
/// 取车电池上次换电结算时 的 SOE
/// </summary>
public float lsoe { get; set; }
/// <summary>
/// 拆卸入仓电池序列号
/// </summary>
public string ubid { get; set; }
/// <summary>
/// 拆卸入仓电池SOC
/// </summary>
public int usoc { get; set; }
/// <summary>
/// 拆卸入仓电池SOE
/// </summary>
public float usoe { get; set; }
/// <summary>
/// 装上电池行驶里程
/// </summary>
public float tm { get; set; }
/// <summary>
/// 此次换电次序
/// </summary>
public int so { get; set; }
/// <summary>
/// 车牌识别时间(或车辆进 站时间)
/// </summary>
public DateTime ct { get; set; }
/// <summary>
/// 换电开始时刻
/// </summary>
public DateTime st { get; set; }
/// <summary>
/// 换电结来时刻
/// </summary>
public DateTime et { get; set; }
/// <summary>
/// 车辆高开时间
/// </summary>
public DateTime ot { get; set; }
/// <summary>
/// 本次换电时同
/// </summary>
public int wt { get; set; }
/// <summary>
/// 出仓安装地仓位号
/// </summary>
public int deno { get; set; }
/// <summary>
/// 拆卸入仓池仓位号
/// </summary>
public int ueno { get; set; }
/// <summary>
/// 车朝总里程
/// </summary>
public float Vtam { get; set; }
/// <summary>
/// 车制累计换电次数
/// </summary>
public int vet { get; set; }
/// <summary>
/// 车辆累计放电量
/// </summary>
public float vtde { get; set; }
/// <summary>
/// 车辆系计回馈电量
/// </summary>
public float vtfe { get; set; }
/// <summary>
/// 车朝累计插枪充电量
/// </summary>
public float vtee { get; set; }
/// <summary>
/// 车制累计综合能耗
/// </summary>
public float vtec { get; set; }
/// <summary>
/// 本次实时放电量
/// </summary>
public float rtde { get; set; }
/// <summary>
/// 上一次结算放电量
/// </summary>
public float Isdc { get; set; }
/// <summary>
/// 本次实时回馈电量
/// </summary>
public float rtfc { get; set; }
/// <summary>
/// 上一才生笙回性中量
/// </summary>
public float Lafc { get; set; }
/// <summary>
/// 本次实时插枪充电量
/// </summary>
public float rtce { get; set; }
/// <summary>
/// 上一次结算插枪充电量
/// </summary>
public float lscc { get; set; }
/// <summary>
/// 本次实时综合能耗
/// </summary>
public float rtec { get; set; }
/// <summary>
/// 上报方式
/// </summary>
public int sfs { get; set; }
/// <summary>
/// 是否是离线订单
/// </summary>
public int sflx { get; set; }
public string GetCmd()
{
return CloudConst.staSwapRecord;
}
}
}

@ -0,0 +1,61 @@
using OfficeOpenXml.FormulaParsing.Excel.Functions.Math;
using Service.Cloud.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Service.Cloud.Msg.Host.Req
{
/// <summary>
/// 2.1.1.1 换电站进行车辆认证
/// </summary>
public class VehicleCertification
{
/// <summary>
/// 认证方式
/// </summary>
public int ty { get; set; }
/// <summary>
/// 车牌号
/// </summary>
public string cn { get; set; }
/// <summary>
/// rfid卡号
/// </summary>
public string rfid { get; set; }
/// <summary>
/// 车辆识别号
/// </summary>
public string vi { get; set; }
/// <summary>
/// MAC地址
/// </summary>
public string mac { get; set; }
/// <summary>
/// 所有车队
/// </summary>
public string mc { get; set; }
/// <summary>
/// 车辆所在换电通 道
/// </summary>
public int en { get; set; }
/// <summary>
/// 车辆进入的时间
/// </summary>
public DateTime dt { get; set; }
/// <summary>
/// 车牌图片
/// </summary>
public String pic { get; set; }
/// <summary>
/// 站内外鉴权方式
/// </summary>
public int mode { get; set; }
public string GetCmd()
{
return CloudConst.carAuth;
}
}
}

@ -0,0 +1,128 @@
using Service.Cloud.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Service.Cloud.Msg.Host.Req
{
/// <summary>
/// 换电车辆数据上报
/// </summary>
public class VehicleDataReporting
{
/// <summary>
/// 订单号
/// </summary>
public string on { get; set; }
/// <summary>
/// 采集时间
/// </summary>
public DateTime ct { get; set; }
/// <summary>
/// 车牌号
/// </summary>
public string cn { get; set; }
/// <summary>
/// rfid卡号
/// </summary>
public string rfid { get; set; }
/// <summary>
/// 车辆识别码VIN
/// </summary>
public string Vi { get; set; }
/// <summary>
/// 所属车队
/// </summary>
public string mc { get; set; }
/// <summary>
/// 电池序列号
/// </summary>
public string bn { get; set; }
/// <summary>
/// 电池外接充电次 数
/// </summary>
public int ec { get; set; }
/// <summary>
/// 电池SOC
/// </summary>
public float soc { get; set; }
/// <summary>
/// 电池包小计行驶 里程
/// </summary>
public float bskm { get; set; }
/// <summary>
/// 电池包行驶总里 程
/// </summary>
public float btkm { get; set; }
/// <summary>
/// 电池包的SOH
/// </summary>
public float soh { get; set; }
/// <summary>
/// 车辆总里程
/// </summary>
public float vtm { get; set; }
/// <summary>
/// 车辆累计换电次 数
/// </summary>
public int vet { get; set; }
/// <summary>
/// 车辆累计放电量
/// </summary>
public int vtde { get; set; }
/// <summary>
/// 车辆累计回馈电 量
/// </summary>
public int vtfe { get; set; }
/// <summary>
/// 车辆累计插枪充 电量
/// </summary>
public int vtce { get; set; }
/// <summary>
/// 车辆累计综合能 耗
/// </summary>
public int vtec { get; set; }
/// <summary>
/// 本次实时放电量
/// </summary>
public int rtde { get; set; }
/// <summary>
/// 上一次结算放电 量
/// </summary>
public int lsde { get; set; }
/// <summary>
/// 本次实时回馈电 量
/// </summary>
public int rtfc { get; set; }
/// <summary>
/// 上一次结算回馈 电量
/// </summary>
public int lsfc { get; set; }
/// <summary>
/// 本次实时插枪充 电量
/// </summary>
public int rtcc { get; set; }
/// <summary>
/// 上一次结算插枪 充电量
/// </summary>
public int lscc { get; set; }
/// <summary>
/// 本次实时综合能 耗
/// </summary>
public int rtec { get; set; }
/// <summary>
/// 上一次结算综合 能耗
/// </summary>
public int ltfc { get; set; }
/// <summary>
/// 待结算电费电量
/// </summary>
public int wsec { get; set; }
public string GetCmd()
{
return CloudConst.CardataReport;
}
}
}

@ -0,0 +1,25 @@
using Service.Cloud.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Service.Cloud.Msg.Host.Resp
{
/// <summary>
/// 3.2.7.2 换电站应答后台服务器设置换电站的电池运营模型
/// </summary>
public class BatteryOperatingModelResp
{
/// <summary>
/// 应答结果
/// </summary>
public int re { get; set; }
public string GetCmd()
{
return CloudConst.setOpModelRes;
}
}
}

@ -0,0 +1,24 @@
using Service.Cloud.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Service.Cloud.Msg.Host.Resp
{
/// <summary>
/// 3.2.6.2 换电站应答后台服务器下发后台服务器设置换电站的营业时段
/// </summary>
public class BusinessHourResp
{
/// <summary>
/// 应答结果
/// </summary>
public int re { get; set; }
public string GetCmd()
{
return CloudConst.setOpTimeRes;
}
}
}

@ -0,0 +1,25 @@
using Service.Cloud.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Service.Cloud.Msg.Host.Resp
{
/// <summary>
/// 2 换电站应答后台服务器下发换电站充电电价模型
/// </summary>
public class ChargerElectricityPriceModelResp
{
/// <summary>
/// 应答结果
/// </summary>
public int re { get; set; }
public string GetCmd()
{
return CloudConst.setChargePriceRes;
}
}
}

@ -0,0 +1,25 @@
using Service.Cloud.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Service.Cloud.Msg.Host.Resp
{
/// <summary>
/// 3.2.3.2 换电站应答后台服务器下发换电站的基础信息
/// </summary>
public class DeliverBasicInformationResp
{
/// <summary>
/// 应答结果
/// </summary>
public int re { get; set; }
public string GetCmd()
{
return CloudConst.setStBaseInfoRes;
}
}
}

@ -0,0 +1,25 @@
using Service.Cloud.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Service.Cloud.Msg.Host.Resp
{
/// <summary>
/// 3.2.9.1 后台服务器下发换电站充电机的电价模型
/// </summary>
public class ElectricityPriceModelResp
{
/// <summary>
/// 应答结果
/// </summary>
public int re { get; set; }
public string GetCmd()
{
return CloudConst.setStaPriceRes;
}
}
}

@ -0,0 +1,25 @@
using Service.Cloud.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Service.Cloud.Msg.Host.Resp
{
/// <summary>
/// 3.2.9.2 换电站应答后台服务器下发离线换电车辆数据
/// </summary>
public class OfflinePowerOnVehicleDataResp
{
/// <summary>
/// 应答结果
/// </summary>
public int re { get; set; }
public string GetCmd()
{
return CloudConst.setChangeCarDataRes;
}
}
}

@ -0,0 +1,42 @@
using Service.Cloud.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Service.Cloud.Msg.Host.Resp
{
/// <summary>
/// 3.2.11.2 换电站应答后台服务器下发参数获取
/// </summary>
public class ParameterAcquisitionResp
{
/// <summary>
/// 应答结果
/// </summary>
public int re { get; set; }
/// <summary>
/// 可换 soc 阈值
/// </summary>
public char chsoc { get; set; }
/// <summary>
/// 换电收费模型 id
/// </summary>
public int eid { get; set; }
/// <summary>
/// 电池运营模型 id
/// </summary>
public string oid { get; set; }
/// <summary>
/// 充电电接模型 id
/// </summary>
public int ceid { get; set; }
public string GetCmd()
{
return CloudConst.getConfigRes;
}
}
}

@ -0,0 +1,36 @@
using Service.Cloud.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Service.Cloud.Msg.Host.Resp
{
/// <summary>
/// 2 换电站应答车辆开始换电指令
/// </summary>
public class PowerChangeCommandResp
{
/// <summary>
/// 接收结果
/// </summary>
public int re { get; set; }
/// <summary>
/// 车辆所在的换电 通道
/// </summary>
public int en { get; set; }
/// <summary>
/// 订单号
/// </summary>
public string on { get; set; }
/// <summary>
/// 换电请求应答
/// </summary>
public int cs { get; set; }
public string GetCmd()
{
return CloudConst.carCanStartRes;
}
}
}

@ -0,0 +1,24 @@
using Service.Cloud.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Service.Cloud.Msg.Host.Resp
{
/// <summary>
/// 3.2.5.2 换电站应答后台服务器下发换电站的可服务状态设置
/// </summary>
public class ServiceableStateResp
{
/// <summary>
/// 应答结果
/// </summary>
public int re { get; set; }
public string GetCmd()
{
return CloudConst.setServiceRes;
}
}
}

@ -0,0 +1,25 @@
using Service.Cloud.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Service.Cloud.Msg.Host.Resp
{
/// <summary>
/// 1.2 换电站应答后台服务器下发参数设置
/// </summary>
public class SetConfigurationParametersResp
{
/// <summary>
/// 应答结果
/// </summary>
public int re { get; set; }
public string GetCmd()
{
return CloudConst.setConfigRes;
}
}
}

@ -7,6 +7,15 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="DotNetty.Buffers" Version="0.7.5" />
<PackageReference Include="DotNetty.Codecs" Version="0.7.5" />
<PackageReference Include="DotNetty.Codecs.Mqtt" Version="0.7.5" />
<PackageReference Include="DotNetty.Common" Version="0.7.5" />
<PackageReference Include="DotNetty.Handlers" Version="0.7.5" />
<PackageReference Include="DotNetty.Transport" Version="0.7.5" />
<PackageReference Include="log4net" Version="2.0.15" />
<PackageReference Include="MQTTnet.AspNetCore" Version="4.3.5.1141" />
<PackageReference Include="SqlSugarCore" Version="5.1.4.115" />
<PackageReference Include="DotNetty.Buffers" Version="0.7.5"/>
<PackageReference Include="DotNetty.Codecs" Version="0.7.5"/>
<PackageReference Include="DotNetty.Codecs.Mqtt" Version="0.7.5"/>

Loading…
Cancel
Save