黄学彪
2019-10-15 2bf5ec775cb57d8015bee58c745a1e48081ff1b1
ZigbeeApp/Shared/Common/Logic.cs
@@ -3,6 +3,7 @@
namespace Shared.Common
{
    public class Logic
    {
        public static List<Logic> LogicList = new List<Logic>();
@@ -14,7 +15,13 @@
        ///<para>以下所有字段只有在Result 为1时存在</para>
        /// </summary>
        public int Result;
        /// <summary>
        /// 1正常自动化;2推荐模板自动化;
        /// </summary>
        public int LogicType=1;
        /// <summary>
        /// 逻辑ID
        /// </summary>
        public int LogicId;
        /// <summary>
        ///该逻辑是否被使能。 
@@ -35,9 +42,13 @@
        ///<para>1:满足其中一个条件触发动作</para>
        /// </summary>
        public int Relationship;
        /// <summary>
        /// 推送内容
        /// </summary>
        public string LogicCustomPushText;
        //public Dictionary<string, string> TimeAttribute = new Dictionary<string, string>();
        public TimeAttributeObj TimeAttribute = new TimeAttributeObj();
        public TimeAttributeObj TimeAttribute = new TimeAttributeObj();
        /// <summary>
        /// 逻辑条件列表
        /// </summary>
@@ -48,6 +59,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>>();
    }