Class TimeWindowTypeAdapter
java.lang.Object
com.amilesend.tmdb.client.parse.adapters.TimeWindowTypeAdapter
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<TimeWindow>,com.google.gson.JsonSerializer<TimeWindow>
public class TimeWindowTypeAdapter
extends Object
implements com.google.gson.JsonSerializer<TimeWindow>, com.google.gson.JsonDeserializer<TimeWindow>
GSON adapter to format and serializes
TimeWindow enums.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext context) com.google.gson.JsonElementserialize(TimeWindow timeWindow, Type type, com.google.gson.JsonSerializationContext context)
-
Constructor Details
-
TimeWindowTypeAdapter
public TimeWindowTypeAdapter()
-
-
Method Details
-
serialize
public com.google.gson.JsonElement serialize(TimeWindow timeWindow, Type type, com.google.gson.JsonSerializationContext context) - Specified by:
serializein interfacecom.google.gson.JsonSerializer<TimeWindow>
-
deserialize
public TimeWindow deserialize(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException - Specified by:
deserializein interfacecom.google.gson.JsonDeserializer<TimeWindow>- Throws:
com.google.gson.JsonParseException
-