From 4f92fe4e4397b05bc97d17e8ad02818a689acdb8 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期四, 10 十月 2019 13:13:33 +0800
Subject: [PATCH] 个人中心添加楼层和创建房间,实装二级验证

---
 ZigbeeApp/Shared/Common/SceneUI.cs |   25 ++++++++++++++++++++++++-
 1 files changed, 24 insertions(+), 1 deletions(-)

diff --git a/ZigbeeApp/Shared/Common/SceneUI.cs b/ZigbeeApp/Shared/Common/SceneUI.cs
index 360a30d..3c02d15 100755
--- a/ZigbeeApp/Shared/Common/SceneUI.cs
+++ b/ZigbeeApp/Shared/Common/SceneUI.cs
@@ -61,6 +61,10 @@
         /// 鏍囪瘑褰撳墠鍦烘櫙鏄惁鏄垎浜殑鍦烘櫙
         /// </summary>
         public bool IsSharedScene = false;
+        /// <summary>
+        /// 鏄惁鏀惰棌
+        /// </summary>
+        public bool IsCollected = false;
 
         /// <summary>
         /// 寤舵椂鎵ц鏃堕棿--鏁翠釜鍦烘櫙寤舵椂(涓嶆槸寤舵椂鍦烘櫙閲岄潰鐨勬墽琛岀洰鏍�)
@@ -77,7 +81,11 @@
         #endregion
 
         #region 鈼� 閫氳繃鍦烘櫙id鑾峰彇鍦烘櫙璺緞_____________
-
+        /// <summary>
+        /// GetSceneFilePathBySceneId
+        /// </summary>
+        /// <param name="sceneId"></param>
+        /// <returns></returns>
         public static string GetSceneFilePathBySceneId(int sceneId)
         {
             return $"Scene_{sceneId}.json";
@@ -85,6 +93,21 @@
 
         #endregion
 
+        #region 鈼� 鏀惰棌____________________________
+
+        /// <summary>
+        /// collect
+        /// </summary>
+        /// <param name="collected"></param>
+        /// <param name="autoBackup"></param>
+        public void Collect(bool collected, bool autoBackup = true)
+        {
+            IsCollected = collected;
+            Save(autoBackup);
+        }
+
+        #endregion
+
         #region 鈼� 淇濆瓨____________________________
 
         /// <summary>

--
Gitblit v1.8.0