From c404f2f369710fe72bbcc4cff2b7b8a2c11b5ff1 Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期二, 02 三月 2021 17:48:32 +0800 Subject: [PATCH] Merge branch 'master' into wjc --- 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