From 6fa9d69da922c8049f5acfcbb9ce9fd26811024c Mon Sep 17 00:00:00 2001
From: xm <1271024303@qq.com>
Date: 星期四, 16 四月 2020 17:10:57 +0800
Subject: [PATCH] 请合并代码

---
 ZigbeeApp/Shared/Common/Logic.cs |   90 +++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 90 insertions(+), 0 deletions(-)

diff --git a/ZigbeeApp/Shared/Common/Logic.cs b/ZigbeeApp/Shared/Common/Logic.cs
new file mode 100755
index 0000000..1bc61e4
--- /dev/null
+++ b/ZigbeeApp/Shared/Common/Logic.cs
@@ -0,0 +1,90 @@
+锘縰sing System;
+using System.Collections.Generic;
+
+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>
+        ///0锛氳幏鍙栨垚鍔�
+        ///<para>1锛氳閫昏緫涓嶅瓨鍦ㄣ��</para>
+        ///<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>
+        ///璇ラ�昏緫鏄惁琚娇鑳姐�� 
+        ///<para>0锛氱鐢ㄨ閫昏緫</para>
+        ///<para>1锛氫娇鑳借閫昏緫</para>
+        ///<para>2: 鍙Е鍙戜竴娆°�傝Е鍙戝悗璇ュ瓧娈靛皢鑷姩缃负0锛屽嵆绂佺敤鐘舵�併��</para>
+        /// </summary>
+        public int IsEnable;
+
+        /// <summary>
+        ///閫昏緫鍚嶇О
+        /// </summary>
+        public string LogicName;
+
+        /// <summary>
+        ///閫昏緫鍏崇郴銆�
+        ///<para>0锛氭弧瓒虫墍鏈夋潯浠惰Е鍙戝姩浣�</para>
+        ///<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();
+        /// <summary>
+        /// 閫昏緫鏉′欢鍒楄〃
+        /// </summary>
+        public List<Dictionary<string, string>> Conditions = new List<Dictionary<string, string>>();
+
+        /// <summary>
+        /// 鏉′欢婊¤冻鍚庢墽琛岀殑鍔ㄤ綔鍒楄〃
+        /// </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>>();
+
+    }
+
+    /// <summary>
+    /// 鎻忚堪閫昏緫鏃堕棿灞炴��
+    /// </summary>
+    [System.Serializable]
+    public class TimeAttributeObj
+    {
+        public int Calendar;
+        public int Repeat = 2;
+        public int WeekDay;
+        public int SetYear;
+        public int MonthDate;
+        public int SelectMonth;
+        public List<int> SelectMonDate = new List<int>();
+    }
+
+
+}

--
Gitblit v1.8.0