CrabtreeOn,印度客户定制APP,迁移2.0平台版本
陈嘉乐
2021-03-02 c404f2f369710fe72bbcc4cff2b7b8a2c11b5ff1
Crabtree/SmartHome/HDL/Operation/Device/AC.cs
old mode 100755 new mode 100644
@@ -65,5 +65,41 @@
        public string Modepicture = "AC/ACRefrigeration.png";
        /// <summary>
        /// 模式A协议属性
        /// </summary>
        /// <returns></returns>
        public string SetModeAttribute {
            get{
                return SetMode switch {
                    0 => "cool",
                    1 => "heat",
                    2 => "fan",
                    3 => "auto",
                    4 => "dry",
                    _ => "cool",
                };
            }
        }
        /// <summary>
        /// 风速A协议属性
        /// </summary>
        /// <returns></returns>
        public string SetFanSpeedAttribute {
            get {
                return SetFanSpeed switch {
                    0 => "auto",
                    1 => "high",
                    2 => "medium",
                    3 => "low",
                    _ => "high",
                };
            }
        }
    }
}