Factions/src/com/massivecraft/factions/adapters/RelAdapter.java

20 lines
592 B
Java
Raw Normal View History

package com.massivecraft.factions.adapters;
2011-10-23 17:55:53 +02:00
import java.lang.reflect.Type;
import com.massivecraft.mcore.xlib.gson.JsonDeserializationContext;
import com.massivecraft.mcore.xlib.gson.JsonDeserializer;
import com.massivecraft.mcore.xlib.gson.JsonElement;
import com.massivecraft.mcore.xlib.gson.JsonParseException;
import com.massivecraft.factions.Rel;
2011-10-23 17:55:53 +02:00
2013-04-10 09:54:42 +02:00
public class RelAdapter implements JsonDeserializer<Rel>
2011-10-23 17:55:53 +02:00
{
@Override
public Rel deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException
{
return Rel.parse(json.getAsString());
}
}