From c2e22e537421647e19fcf167b8989e458554e91e Mon Sep 17 00:00:00 2001 From: Yannik Bretschneider Date: Thu, 3 Jun 2021 22:14:53 +0200 Subject: [PATCH] feat: defined property order of GameStructure message --- .../gamelibrary/messages/GameStructureMessage.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/uulm/teamname/marvelous/gamelibrary/messages/GameStructureMessage.java b/src/main/java/uulm/teamname/marvelous/gamelibrary/messages/GameStructureMessage.java index e2537d7..b0c9c73 100644 --- a/src/main/java/uulm/teamname/marvelous/gamelibrary/messages/GameStructureMessage.java +++ b/src/main/java/uulm/teamname/marvelous/gamelibrary/messages/GameStructureMessage.java @@ -1,6 +1,7 @@ package uulm.teamname.marvelous.gamelibrary.messages; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import uulm.teamname.marvelous.gamelibrary.config.CharacterConfig; import uulm.teamname.marvelous.gamelibrary.config.CharacterProperties; import uulm.teamname.marvelous.gamelibrary.config.PartyConfig; @@ -10,6 +11,15 @@ import java.util.Arrays; import java.util.Objects; import java.util.stream.Stream; +@JsonPropertyOrder({ + "messageType", + "assignment", + "playerOneName", + "playerTwoName", + "playerOneCharacters", + "playerTwoCharacters", + "scenarioconfig", + "matchconfig"}) public class GameStructureMessage extends BasicMessage { public final MessageType messageType = MessageType.GAME_STRUCTURE;