refactor: generated toString for requests
This commit is contained in:
parent
78d3fb84d0
commit
1525fe9a41
@ -36,4 +36,17 @@ public class CharacterRequest extends Request {
|
|||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(super.hashCode(), originEntity, targetEntity, originField, targetField, value, stoneType);
|
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 +
|
||||||
|
'}';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,4 +8,11 @@ import uulm.teamname.marvelous.gamelibrary.json.ingame.serialize.RequestSerializ
|
|||||||
/** Represents a game request for: {@link RequestType#DisconnectRequest}. */
|
/** Represents a game request for: {@link RequestType#DisconnectRequest}. */
|
||||||
@JsonDeserialize(using = RequestDeserializer.class)
|
@JsonDeserialize(using = RequestDeserializer.class)
|
||||||
@JsonSerialize(using = RequestSerializer.class)
|
@JsonSerialize(using = RequestSerializer.class)
|
||||||
public class GameRequest extends Request {}
|
public class GameRequest extends Request {
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "GameRequest{" +
|
||||||
|
"type=" + type +
|
||||||
|
'}';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user