public class StatsAdapter
extends com.google.gson.TypeAdapter<Stats>
Json TypeAdapter for the Stats object received from the API.
-
-
Constructor Summary
Constructors
-
Method Summary
read(com.google.gson.stream.JsonReader jsonReader)
void
write(com.google.gson.stream.JsonWriter jsonWriter,
Stats stats)
Methods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
CP_APPLICATIONS
private static final String CP_APPLICATIONS
- See Also:
-
-
CP_SERVER_PREFIX
private static final String CP_SERVER_PREFIX
- See Also:
-
-
Constructor Details
-
StatsAdapter
public StatsAdapter()
-
Method Details
-
write
public void write(com.google.gson.stream.JsonWriter jsonWriter,
Stats stats)
throws IOException
- Specified by:
write in class com.google.gson.TypeAdapter<Stats>
- Throws:
IOException
-
read
public Stats read(com.google.gson.stream.JsonReader jsonReader)
throws IOException
- Specified by:
read in class com.google.gson.TypeAdapter<Stats>
- Throws:
IOException