refactor: generated toString for requests

This commit is contained in:
Yannik Bretschneider 2021-06-03 23:51:10 +02:00
parent 78d3fb84d0
commit 1525fe9a41
2 changed files with 21 additions and 1 deletions

View File

@ -36,4 +36,17 @@ public class CharacterRequest extends Request {
public int hashCode() {
return Objects.hash(super.hashCode(), originEntity, targetEntity, originField, targetField, value, stoneType);
}
@Override
public String toString() {
return "CharacterRequest{" +
"originEntity=" + originEntity +
", targetEntity=" + targetEntity +
", originField=" + originField +
", targetField=" + targetField +
", value=" + value +
", stoneType=" + stoneType +
", type=" + type +
'}';
}
}

View File

@ -8,4 +8,11 @@ import uulm.teamname.marvelous.gamelibrary.json.ingame.serialize.RequestSerializ
/** Represents a game request for: {@link RequestType#DisconnectRequest}. */
@JsonDeserialize(using = RequestDeserializer.class)
@JsonSerialize(using = RequestSerializer.class)
public class GameRequest extends Request {}
public class GameRequest extends Request {
@Override
public String toString() {
return "GameRequest{" +
"type=" + type +
'}';
}
}