From af1cb3ecd0f4b0589e00b28f7f9edccf39e6e12b Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期四, 10 九月 2020 16:15:11 +0800 Subject: [PATCH] 202009101 --- HDL_ON/Entity/AProtocolEntity.cs | 45 ++++++++++++++++++++++++++++----------------- 1 files changed, 28 insertions(+), 17 deletions(-) diff --git a/HDL_ON/Entity/AProtocolEntity.cs b/HDL_ON/Entity/AProtocolEntity.cs index 05105a0..ac1dca4 100644 --- a/HDL_ON/Entity/AProtocolEntity.cs +++ b/HDL_ON/Entity/AProtocolEntity.cs @@ -4,9 +4,22 @@ namespace HDL_ON.Entity { + /// <summary> + /// A鍗忚鍙戦�佹暟鎹璞� + /// </summary> + public class AProtocolSendingObject + { + + public string time_stamp = ""; + public string type = ""; + public string command = ""; + + public List<ControlData> objects = new List<ControlData>(); + } public class ControlData { + public string sid; /// <summary> /// 鎺у埗灞炴�х殑鍚嶇О /// </summary> @@ -21,16 +34,16 @@ public string value; } - public class FunctionControlData - { + public class FunctionControlData + { public string sid = ""; public List<ControlData> function; } /// <summary> - /// A鍗忚澶撮儴鍐呭 - /// </summary> + /// A鍗忚澶撮儴鍐呭 + /// </summary> public class AProtocolEntityHeader { @@ -44,17 +57,15 @@ public string command; } - public class AProtocolEntity - { - public List<object> objects = new List<object>(); - - - public void ControlFunction(string sid, List<ControlData> function) - { - var fcd = new FunctionControlData(); - fcd.sid = sid; - fcd.function = function; - objects.Add(fcd); - } - } + //public class AProtocolEntity + //{ + // public List<object> objects = new List<object>(); + // public void ControlFunction(string sid, List<ControlData> function) + // { + // var fcd = new FunctionControlData(); + // fcd.sid = sid; + // fcd.function = function; + // objects.Add(fcd); + // } + //} } \ No newline at end of file -- Gitblit v1.8.0