From d2666457d16f6171785596a8a9cb2fb9fb35f84b Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期五, 16 四月 2021 18:03:54 +0800 Subject: [PATCH] 2021-4-16-1 --- HDL_ON/UI/UI2/3-Intelligence/Automation/Logic.cs | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 51 insertions(+), 2 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/Logic.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/Logic.cs index 6d95d0e..d643f14 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/Logic.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/Logic.cs @@ -5,6 +5,7 @@ /// <summary> /// 閫昏緫瀛樺偍鏁版嵁瀵硅薄 /// </summary> + [Serializable] public class Logic { @@ -48,12 +49,17 @@ /// 閫昏緫杈撳嚭鐩爣鏁扮粍 /// </summary> public List<Output> output = new List<Output>(); - + /// <summary> + /// 鎺ㄩ�侀厤缃� + /// </summary> + public List<PushConfigs> pushConfigs = new List<PushConfigs>(); + } /// <summary> /// 鎵ц鍛ㄦ湡瀵硅薄 /// </summary> + [Serializable] public class Cycle { /// <summary> @@ -66,6 +72,7 @@ /// <summary> /// 杈撳叆鏉′欢瀵硅薄 /// </summary> + [Serializable] public class Input { /// <summary> @@ -85,10 +92,15 @@ /// </summary> public string condition_type = ""; public List<Dictionary<string, string>> condition = new List<Dictionary<string, string>>(); + /// <summary> + /// 鍦扮悊鍥存爮閰嶇疆 + /// </summary> + public Fence geo_fence = new Fence(); } /// <summary> /// 杈撳嚭鐩爣瀵硅薄 /// </summary> + [Serializable] public class Output { /// <summary> @@ -104,7 +116,44 @@ public string target_type = ""; public List<Dictionary<string, string>> status = new List<Dictionary<string, string>>(); } - + /// <summary> + /// 鍦扮悊鍥存爮閰嶇疆 + /// </summary> + [Serializable] + public class Fence + { + /// <summary> + /// 缁忓害 + /// </summary> + public string longitude = string.Empty; + /// <summary> + /// 绾害 + /// </summary> + public string latitude = string.Empty; + /// <summary> + /// 鍗曚綅绫� + /// </summary> + public string radius = string.Empty; + } + /// <summary> + /// 鎺ㄩ�侀厤缃� + /// </summary> + [Serializable] + public class PushConfigs + { + /// <summary> + /// 鎺ㄩ�佹柟寮�(APP/SMS) + /// </summary> + public string pushMethod = "APP"; + /// <summary> + /// 鎺ㄩ�佸唴瀹� + /// </summary> + public string pushContent = string.Empty; + /// <summary> + /// 鎺ㄩ�佺洰鏍� + /// </summary> + public List<string> pushTarget = new List<string> {}; + } } -- Gitblit v1.8.0