Files
2025-02-28 22:23:13 +08:00

72 lines
1.6 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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; }
}
}