static void ReceviceQueryCommand(SyncSession session, ProtocolRequestBase e) { Protocol.QueryCommand msg = new Protocol.QueryCommand(); msg.frame = (int)e.m_data["frame"]; msg.id = (int)e.m_data["id"]; EventService.DispatchTypeEvent(session, msg); }
static void SendQueryCommand(SyncSession session, Protocol.QueryCommand msg) { Dictionary <string, object> data = new Dictionary <string, object>(); data.Add("frame", msg.frame); data.Add("id", msg.id); session.SendMsg("querycommand", data); }