From 28d269d8aa90eca5470fff825a9b9545135a3ec0 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期三, 16 十二月 2020 17:37:26 +0800
Subject: [PATCH] 上传一个初始版本

---
 HDL_ON/DAL/Server/NewApiRes.cs |   19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diff --git a/HDL_ON/DAL/Server/NewApiRes.cs b/HDL_ON/DAL/Server/NewApiRes.cs
index 8b7a67a..9b014e5 100644
--- a/HDL_ON/DAL/Server/NewApiRes.cs
+++ b/HDL_ON/DAL/Server/NewApiRes.cs
@@ -569,7 +569,24 @@
         /// ON_LINE(0,"鍦ㄧ嚎"),
         /// OFF_LINE(1,"涓嬬嚎"),;
         /// </summary>
-        public bool gatewayStatus;
+        public string gatewayStatus;
+        /// <summary>
+        /// 缃戝叧鏄惁鍦ㄧ嚎
+        /// </summary>
+        public bool GatewayOnline
+        {
+            get
+            {
+                if (gatewayStatus == "ON_LINE")
+                {
+                    return true;
+                }
+                else
+                {
+                    return false;
+                }
+            }
+        }
 
         ///// <summary>
         ///// 

--
Gitblit v1.8.0