public class PlayerInfoSerializer extends Object implements com.google.gson.JsonSerializer<ServerPing.PlayerInfo>, com.google.gson.JsonDeserializer<ServerPing.PlayerInfo>
Constructor and Description |
---|
PlayerInfoSerializer() |
Modifier and Type | Method and Description |
---|---|
ServerPing.PlayerInfo |
deserialize(com.google.gson.JsonElement json,
Type typeOfT,
com.google.gson.JsonDeserializationContext context) |
com.google.gson.JsonElement |
serialize(ServerPing.PlayerInfo src,
Type typeOfSrc,
com.google.gson.JsonSerializationContext context) |
public ServerPing.PlayerInfo deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
deserialize
in interface com.google.gson.JsonDeserializer<ServerPing.PlayerInfo>
com.google.gson.JsonParseException
public com.google.gson.JsonElement serialize(ServerPing.PlayerInfo src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
serialize
in interface com.google.gson.JsonSerializer<ServerPing.PlayerInfo>
Copyright © 2012–2020 SpigotMC. All rights reserved.