From 50b7b7a486f56fab27c83b59eb45673c6d9f0935 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期三, 24 二月 2021 18:33:57 +0800
Subject: [PATCH] 2021-02-24 1.新增场景上传。2.优化

---
 Crabtree/SmartHome/HDL/Operation/Device/FoolHeat.cs |   21 ++++++++++++++++++++-
 1 files changed, 20 insertions(+), 1 deletions(-)

diff --git a/Crabtree/SmartHome/HDL/Operation/Device/FoolHeat.cs b/Crabtree/SmartHome/HDL/Operation/Device/FoolHeat.cs
old mode 100755
new mode 100644
index f37c812..1aa6b00
--- a/Crabtree/SmartHome/HDL/Operation/Device/FoolHeat.cs
+++ b/Crabtree/SmartHome/HDL/Operation/Device/FoolHeat.cs
@@ -153,5 +153,24 @@
             WorkMode = 9,
             Null = 999,
         }
-	}
+
+
+        /// <summary>
+        /// 妯″紡A鍗忚灞炴��
+        /// </summary>
+        /// <returns></returns>
+        public string SetModeAttribute {
+            get {
+                return TemperatureType switch {
+                    1 => "normal",
+                    2 => "day",
+                    3 => "night",
+                    4 => "away",
+                    5 => "timer",
+                    _ => "normal",
+                };
+            }
+        }
+
+    }
 }
\ No newline at end of file

--
Gitblit v1.8.0