From c0379d078e7919c9934085da038e8e3c20dee85a Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期四, 25 二月 2021 19:26:06 +0800
Subject: [PATCH] 2021-02-25 1.增加语音设备选择。2.增加场景全量更新上传。

---
 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