From 149adc620e7e120ee2adaa406a5302c9a0a2eff3 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期五, 10 一月 2020 17:26:23 +0800
Subject: [PATCH] 2020-01-10 1.优化。

---
 Crabtree/SmartHome/HDL/Operation/UserConfig.cs |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/Crabtree/SmartHome/HDL/Operation/UserConfig.cs b/Crabtree/SmartHome/HDL/Operation/UserConfig.cs
index ac01c14..4e972dd 100644
--- a/Crabtree/SmartHome/HDL/Operation/UserConfig.cs
+++ b/Crabtree/SmartHome/HDL/Operation/UserConfig.cs
@@ -179,6 +179,15 @@
             }
         }
 
+        public bool CheckThisHomeGatewaysNotEmpty (RegionInfoRes mRegionInfoRes)
+        {
+            if (mRegionInfoRes != null && mRegionInfoRes.HomeGateways != null && mRegionInfoRes.HomeGateways.Count > 0 && !string.IsNullOrEmpty (mRegionInfoRes.HomeGateways [0].GatewayUniqueId)) {
+                return true;
+            } else {
+                return false;
+            }
+        }
+
         //public List<GatewayRes> GatewayList = new List<GatewayRes> ();
 
         //public List<string> GatewayMACList {

--
Gitblit v1.8.0