From 4f2586e799a7b5902af897efb955e1d5f3f1995c Mon Sep 17 00:00:00 2001 From: anhefti Date: Tue, 6 Sep 2022 09:47:05 +0200 Subject: [PATCH] SEBSERV-347 improved Json attribute names (shorten) --- .../gbl/model/session/ClientConnectionData.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/main/java/ch/ethz/seb/sebserver/gbl/model/session/ClientConnectionData.java b/src/main/java/ch/ethz/seb/sebserver/gbl/model/session/ClientConnectionData.java index 1724f1bb..7bf0d265 100644 --- a/src/main/java/ch/ethz/seb/sebserver/gbl/model/session/ClientConnectionData.java +++ b/src/main/java/ch/ethz/seb/sebserver/gbl/model/session/ClientConnectionData.java @@ -31,21 +31,22 @@ import ch.ethz.seb.sebserver.gbl.util.Utils; @JsonIgnoreProperties(ignoreUnknown = true) public class ClientConnectionData implements GrantEntity { - public static final String ATTR_CLIENT_CONNECTION = "cData"; - public static final String ATTR_INDICATOR_VALUE = "iValues"; - public static final String ATTR_MISSING_PING = "missing"; - public static final String ATTR_PENDING_NOTIFICATION = "notification"; + public static final String ATTR_CLIENT_CONNECTION = "cdat"; + public static final String ATTR_INDICATOR_VALUE = "iVal"; + public static final String ATTR_MISSING_PING = "miss"; + public static final String ATTR_PENDING_NOTIFICATION = "pnot"; + public static final String ATTR_CLIENT_GROUPS = "cg"; @JsonProperty(ATTR_CLIENT_CONNECTION) public final ClientConnection clientConnection; @JsonProperty(ATTR_INDICATOR_VALUE) public final List indicatorValues; + @JsonProperty(ATTR_CLIENT_GROUPS) + public Set groups = null; public final Boolean missingPing; public final Boolean pendingNotification; - private Set groups = null; - @JsonCreator public ClientConnectionData( @JsonProperty(ATTR_MISSING_PING) final Boolean missingPing,