Add: ResponseNode and implementations to store body of response

This commit is contained in:
Lars Simon Winzer
2026-03-24 12:19:25 +01:00
parent eb63f6d39b
commit bcfbe06532
3 changed files with 15 additions and 0 deletions
@@ -0,0 +1,5 @@
package ch.unibas.dmi.dbis.cs108.casono.server.network.response;
import java.util.List;
public record ResponseBlock(String tag, List<ResponseNode> children) implements ResponseNode {}
@@ -0,0 +1,3 @@
package ch.unibas.dmi.dbis.cs108.casono.server.network.response;
public interface ResponseNode {}
@@ -0,0 +1,7 @@
package ch.unibas.dmi.dbis.cs108.casono.server.network.response;
public record ResponseParameter(String key, Object value) implements ResponseNode {
public String rawValue() {
return value.toString();
}
}