From a715181089be0d31cd737a5367ffd02690b9d77f Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期四, 12 十一月 2020 13:36:01 +0800 Subject: [PATCH] 20201112 --- HDL_ON/Entity/AProtocolEntity.cs | 70 +++++++++++++++++++---------------- 1 files changed, 38 insertions(+), 32 deletions(-) diff --git a/HDL_ON/Entity/AProtocolEntity.cs b/HDL_ON/Entity/AProtocolEntity.cs index 05105a0..0d712c4 100644 --- a/HDL_ON/Entity/AProtocolEntity.cs +++ b/HDL_ON/Entity/AProtocolEntity.cs @@ -4,9 +4,31 @@ namespace HDL_ON.Entity { + /// <summary> + /// A鍗忚澶撮儴鍐呭 + /// </summary> + public class AP_Header + { + + public string from_oid = "on+"; + public string to_oid; + public string time_stamp = DateTime.UtcNow.ToShortDateString(); + public string type; + public string command; + + } + #region 鎺у埗鏁版嵁 + /// <summary> + /// A鍗忚鍙戦�佹暟鎹璞� + /// </summary> + public class AProtocolSendingObject : AP_Header + { + public List<ControlData> objects = new List<ControlData>(); + } public class ControlData { + public string sid; /// <summary> /// 鎺у埗灞炴�х殑鍚嶇О /// </summary> @@ -20,41 +42,25 @@ /// </summary> public string value; } + #endregion - public class FunctionControlData - { - public string sid = ""; + #region 鍦烘櫙鏁版嵁 + //public class AP_ReceiveHeader + //{ + // public string from_oid = "on+"; + // public string to_oid; + // public string time_stamp = DateTime.UtcNow.ToShortDateString(); + // public string value; + // public string command; + //} - public List<ControlData> function; - - } /// <summary> - /// A鍗忚澶撮儴鍐呭 + /// 璇诲彇鍦烘櫙鍒楄〃鍥炲鐨勬暟鎹� /// </summary> - public class AProtocolEntityHeader + public class SceneListReceiveData : AP_Header { - - public string from_oid;//": null, - public string to_oid;//": null, - /// <summary> - /// 鏃堕棿鎴� - /// </summary> - public string time_stamp;//": null, - public string type; - 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 string value; + public List<object> number = new List<object>(); + } + #endregion } \ No newline at end of file -- Gitblit v1.8.0