| | |
| | | namespace HDL_ON.Entity |
| | | { |
| | | /// <summary> |
| | | /// A协议发送数据对象 |
| | | /// A协议头部内容 |
| | | /// </summary> |
| | | public class AProtocolSendingObject |
| | | public class AP_Header |
| | | { |
| | | |
| | | public string time_stamp = ""; |
| | | public string type = ""; |
| | | public string command = ""; |
| | | 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>(); |
| | | } |
| | | |
| | |
| | | /// </summary> |
| | | public string value; |
| | | } |
| | | #endregion |
| | | |
| | | public class FunctionControlData |
| | | { |
| | | public string sid = ""; |
| | | |
| | | public List<ControlData> function; |
| | | |
| | | } |
| | | /// <summary> |
| | | /// A协议头部内容 |
| | | /// </summary> |
| | | public class AProtocolEntityHeader |
| | | { |
| | | |
| | | 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 |
| | | #region 场景数据 |
| | | //public class AP_ReceiveHeader |
| | | //{ |
| | | // 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 from_oid = "on+"; |
| | | // public string to_oid; |
| | | // public string time_stamp = DateTime.UtcNow.ToShortDateString(); |
| | | // public string value; |
| | | // public string command; |
| | | // } |
| | | //} |
| | | |
| | | /// <summary> |
| | | /// 读取场景列表回复的数据 |
| | | /// </summary> |
| | | public class SceneListReceiveData : AP_Header |
| | | { |
| | | public string value; |
| | | public List<object> number = new List<object>(); |
| | | } |
| | | #endregion |
| | | } |