From 2b380862ab304f049ae7181a058b0791671d1bb4 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期二, 23 二月 2021 09:39:54 +0800 Subject: [PATCH] 2021-02-23 1.增加场景数据转换和上传测试方法。2.增加风扇和通用开关设备spk --- Crabtree/SmartHome/HDL/Operation/Device/AC.cs | 36 ++++++++++++++++++++++++++++++++++++ 1 files changed, 36 insertions(+), 0 deletions(-) diff --git a/Crabtree/SmartHome/HDL/Operation/Device/AC.cs b/Crabtree/SmartHome/HDL/Operation/Device/AC.cs old mode 100755 new mode 100644 index 7ecaa66..64777b1 --- a/Crabtree/SmartHome/HDL/Operation/Device/AC.cs +++ b/Crabtree/SmartHome/HDL/Operation/Device/AC.cs @@ -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> + /// 椋庨�烝鍗忚灞炴�� + /// </summary> + /// <returns></returns> + public string SetFanSpeedAttribute { + get { + return SetFanSpeed switch { + 0 => "auto", + 1 => "high", + 2 => "medium", + 3 => "low", + _ => "high", + }; + } + } + + + + } } -- Gitblit v1.8.0