Add: PrimitiveRequest created by ProtocolParser containing a list of Parameter objects

This commit is contained in:
Lars Simon Winzer
2026-03-15 15:18:38 +01:00
parent 99a7154701
commit 9c3f62db24
2 changed files with 10 additions and 0 deletions
@@ -0,0 +1,4 @@
package ch.unibas.dmi.dbis.cs108.casono.server.network.parser;
/** Used in the PrimitiveRequest class to store the key of a parameter with its respective value */
public record Parameter(String key, String value) {}
@@ -0,0 +1,6 @@
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) {}