Class ParticipantAdapter
java.lang.Object
at.stefangeyer.challonge.serializer.gson.adapter.ParticipantAdapter
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<at.stefangeyer.challonge.model.Participant>
public class ParticipantAdapter
extends java.lang.Object
implements com.google.gson.JsonDeserializer<at.stefangeyer.challonge.model.Participant>
Type adapter for the [Participant] class.
The received json object is being unpacked.
-
Constructor Summary
Constructors Constructor Description ParticipantAdapter() -
Method Summary
Modifier and Type Method Description at.stefangeyer.challonge.model.Participantdeserialize(com.google.gson.JsonElement src, java.lang.reflect.Type typeOfSource, com.google.gson.JsonDeserializationContext context)
-
Constructor Details
-
ParticipantAdapter
public ParticipantAdapter()
-
-
Method Details
-
deserialize
public at.stefangeyer.challonge.model.Participant deserialize(com.google.gson.JsonElement src, java.lang.reflect.Type typeOfSource, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException- Specified by:
deserializein interfacecom.google.gson.JsonDeserializer<at.stefangeyer.challonge.model.Participant>- Throws:
com.google.gson.JsonParseException
-