From 94e4e5b9fd3da964c44b7b14227d6fe2bbb426d7 Mon Sep 17 00:00:00 2001
From: WJC <wjc@hdlchina.com.cn>
Date: 星期四, 02 四月 2020 13:56:39 +0800
Subject: [PATCH] 2020-04-02-2

---
 ZigbeeApp/Shared/Common/Logic.cs |   33 +++++++++++++++++++++++++++++----
 1 files changed, 29 insertions(+), 4 deletions(-)

diff --git a/ZigbeeApp/Shared/Common/Logic.cs b/ZigbeeApp/Shared/Common/Logic.cs
index 8fed77f..da5d19a 100644
--- a/ZigbeeApp/Shared/Common/Logic.cs
+++ b/ZigbeeApp/Shared/Common/Logic.cs
@@ -3,9 +3,11 @@
 
 namespace Shared.Common
 {
+
     public class Logic
     {
         public static List<Logic> LogicList = new List<Logic>();
+        public static List<Logic> LockLogicList = new List<Logic>();
         public static List<ZigBee.Device.CommonDevice> LogicDviceList = new List<ZigBee.Device.CommonDevice>();
         public static Logic CurrentLogic;
         /// <summary>
@@ -14,7 +16,13 @@
         ///<para>浠ヤ笅鎵�鏈夊瓧娈靛彧鏈夊湪Result 涓�1鏃跺瓨鍦�</para>
         /// </summary>
         public int Result;
-
+        /// <summary>
+        /// 0.姝e父鑷姩鍖�;1.闂ㄩ攣鑷姩鍖�;2.闂ㄩ攣甯稿紑.鍏�;
+        /// </summary>
+        public int LogicType = 0;
+        /// <summary>
+        /// 閫昏緫ID
+        /// </summary>
         public int LogicId;
         /// <summary>
         ///璇ラ�昏緫鏄惁琚娇鑳姐�� 
@@ -23,6 +31,11 @@
         ///<para>2: 鍙Е鍙戜竴娆°�傝Е鍙戝悗璇ュ瓧娈靛皢鑷姩缃负0锛屽嵆绂佺敤鐘舵�併��</para>
         /// </summary>
         public int IsEnable;
+
+        /// <summary>
+        ///  0.姝e父鑷姩鍖�;1.闂ㄩ攣鑷姩鍖�;2.闂ㄩ攣甯稿紑.鍏�;
+        /// </summary>
+       // public int LogicStatus;
 
         /// <summary>
         ///閫昏緫鍚嶇О
@@ -35,9 +48,17 @@
         ///<para>1锛氭弧瓒冲叾涓竴涓潯浠惰Е鍙戝姩浣�</para>
         /// </summary>
         public int Relationship;
+        /// <summary>
+        /// 鎺ㄩ�佸唴瀹�
+        /// </summary>
+        public string LogicCustomPushText=string.Empty;
+        /// <summary>
+        /// 璁板綍鎺ㄩ�佸紑鍏崇姸鎬�
+        /// </summary>
+        public int LogicIsCustomPushText = 0;
 
         //public Dictionary<string, string> TimeAttribute = new Dictionary<string, string>();
-        public TimeAttributeObj TimeAttribute = new TimeAttributeObj(); 
+        public TimeAttributeObj TimeAttribute = new TimeAttributeObj();
         /// <summary>
         /// 閫昏緫鏉′欢鍒楄〃
         /// </summary>
@@ -48,6 +69,10 @@
         /// </summary>
         public List<Dictionary<string, object>> Actions = new List<Dictionary<string, object>>();
 
+        /// <summary>
+        /// 鍏宠仈app璐﹀彿鍒楄〃
+        /// </summary>
+        public List<Dictionary<string, string>> Accounts = new List<Dictionary<string, string>>();
 
     }
 
@@ -58,7 +83,7 @@
     public class TimeAttributeObj
     {
         public int Calendar;
-        public int Repeat=2;
+        public int Repeat = 2;
         public int WeekDay;
         public int SetYear;
         public int MonthDate;
@@ -67,4 +92,4 @@
     }
 
 
-    }
+}

--
Gitblit v1.8.0