Add: RequestId to PrimitiveRequest
This commit is contained in:
+1
-1
@@ -3,4 +3,4 @@ package ch.unibas.dmi.dbis.cs108.casono.server.network.parser;
|
||||
import java.util.List;
|
||||
|
||||
/** Created by the ProtocolParser to allow easy access to the request contents */
|
||||
public record PrimitiveRequest(String command, List<Parameter> parameters) {}
|
||||
public record PrimitiveRequest(int requestId, String command, List<Parameter> parameters) {}
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ public class ProtocolParser {
|
||||
String command = readCommand(iterator);
|
||||
List<Parameter> parameters = readParameters(iterator);
|
||||
|
||||
return new PrimitiveRequest(command, parameters);
|
||||
return new PrimitiveRequest(packet.requestId(), command, parameters);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user