using System; namespace Shared { /// /// 空调 /// [System.Serializable] public class AC : Common { //public AC(){ // this.Type = DeviceType.ACHVAC; // DeviceTextID = SimpleControl.R.MyInternationalizationString.AC; //} /// /// 温度模式 /// public byte TemperatureMode; /// /// 室内温度 /// public byte IndoorTemperature; /// /// 制冷温度 /// public byte CoolTemperature; /// /// 制热温度 /// public byte HeatTemperature; /// /// 自动温度 /// public byte AutoTemperature; /// /// 除湿温度 /// public byte ChuShiTemperature; /// /// 实际工作模式及风速 /// public byte RealModeAndFanSpeed; /// /// 开关 /// public byte Power; /// /// 设置模式 /// public byte SetMode; /// /// 设置风速 /// public byte SetFanSpeed; /// /// 设置温度 /// public byte SetTemperature = 25; /// /// 扫风模式 /// public byte ShaoFanMode; public string Windpicture = "AC/ACAuto.png"; public string Modepicture = "AC/ACRefrigeration.png"; /// /// 模式A协议属性 /// /// public string SetModeAttribute { get{ return SetMode switch { 0 => "cool", 1 => "heat", 2 => "fan", 3 => "auto", 4 => "dry", _ => "cool", }; } } /// /// 风速A协议属性 /// /// public string SetFanSpeedAttribute { get { return SetFanSpeed switch { 0 => "auto", 1 => "high", 2 => "medium", 3 => "low", _ => "high", }; } } } }