添加项目文件。
This commit is contained in:
71
OrpaonEMS.Model/MasterSlave/ServerCmd.cs
Normal file
71
OrpaonEMS.Model/MasterSlave/ServerCmd.cs
Normal file
@@ -0,0 +1,71 @@
|
||||
using Prism.Mvvm;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OrpaonEMS.Model.MasterSlave
|
||||
{
|
||||
/// <summary>
|
||||
/// 服务端发送指令数据
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class ServerCmd : BindableBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 站号
|
||||
/// </summary>
|
||||
public ushort Station { get; set; }
|
||||
|
||||
private string _CmdType;
|
||||
/// <summary>
|
||||
/// 指令类型
|
||||
/// 充电:charg
|
||||
/// 放电:discharg
|
||||
/// </summary>
|
||||
public string CmdType
|
||||
{
|
||||
get { return _CmdType; }
|
||||
set { _CmdType = value; RaisePropertyChanged(); }
|
||||
}
|
||||
|
||||
///// <summary>
|
||||
///// 指令类型
|
||||
///// 充电:charg
|
||||
///// 放电:discharg
|
||||
///// </summary>
|
||||
//public string CmdType { get; set; }=string.Empty;
|
||||
|
||||
|
||||
private double _CmdPw;
|
||||
/// <summary>
|
||||
/// 功率指令
|
||||
/// </summary>
|
||||
public double CmdPw
|
||||
{
|
||||
get { return _CmdPw; }
|
||||
set { _CmdPw = value; RaisePropertyChanged(); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// PCS指令
|
||||
/// 开和关
|
||||
/// </summary>
|
||||
public bool PcsOnOffCmd { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 液冷指令
|
||||
/// 开和关
|
||||
/// </summary>
|
||||
public bool CoolOnOffCmd { get; set; }
|
||||
|
||||
///// <summary>
|
||||
///// 其他指令
|
||||
///// Json信息解析
|
||||
///// </summary>
|
||||
//public string? OtherCmd { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user