From 57da7ebc02985578f65fd3435fd83e482bd76c45 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期五, 26 二月 2021 09:21:55 +0800
Subject: [PATCH] 2021-02-26 1.场景转换调光灯增加on_off属性

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