72 lines
1.6 KiB
C#
72 lines
1.6 KiB
C#
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; }
|
||
|
||
|
||
}
|
||
}
|