public ListCategoryMotionStoreRequest(CategoryMotionRequest.Type type, uint start, uint end) { CategoryType = type; Start = start; End = end; RequestKey = GetType() + type.ToString() + start.ToString() + end.ToString(); }
public override void BuildPacket() { base.BuildPacket(); var categoryMotionRequest = new CategoryMotionRequest() { type = CategoryType, start = Start, end = End }; byte[] packetData; using (var stream = new MemoryStream()) { Serializer.Serialize(stream, categoryMotionRequest); packetData = stream.ToArray(); } GlobalVariables.CountRequest++; Packet = StoreConnection.BuildServerPacket(packetData.Length + 16, (int)MessageType.Type.MOTION_OF_CATEGORY, 2, packetData, GlobalVariables.CountRequest); }