using System; using System.Text; namespace HDL_ON.DriverLayer { public class A_Protocal_Common { public static A_Protocal_Common apc; public A_Protocal_Common() { apc = new A_Protocal_Common(); } /// /// 获取13位时间戳 /// /// 时间 /// long public long Get_time_stamp() { //DateTime startTime = new DateTime(1970, 1, 1, 0, 0, 0, 0); long t = DateTime.Now.Ticks / 10000; //除10000调整为13位 return t; } } /// /// 通讯回复数据包 /// public class ResponsePack { public string id; public string code; public string time_stamp; public object objects; } /// /// 通讯主题 /// public static class CommunicationTopic { /// /// 搜索本地网关 /// public const string SearchLoaclGateway = "/user/all/custom/gateway/search"; } }