Merge branch 'patch-35' into 'dev'

@Override added

See merge request morningstar/Arcturus-Community!236
This commit is contained in:
Beny 2020-10-07 10:28:09 -04:00
commit ffb7ca9ae7

View File

@ -32,6 +32,7 @@ public abstract class RCONMessage<T> {
public abstract void handle(Gson gson, T json); public abstract void handle(Gson gson, T json);
public static class RCONMessageSerializer implements JsonSerializer<RCONMessage> { public static class RCONMessageSerializer implements JsonSerializer<RCONMessage> {
@Override
public JsonElement serialize(final RCONMessage rconMessage, final Type type, final JsonSerializationContext context) { public JsonElement serialize(final RCONMessage rconMessage, final Type type, final JsonSerializationContext context) {
JsonObject result = new JsonObject(); JsonObject result = new JsonObject();
result.add("status", new JsonPrimitive(rconMessage.status)); result.add("status", new JsonPrimitive(rconMessage.status));