Class StatsAdapter


  • public class StatsAdapter
    extends com.google.gson.TypeAdapter<Stats>
    Json TypeAdapter for the Stats object received from the API.
    • Constructor Detail

      • StatsAdapter

        public StatsAdapter()
    • Method Detail

      • 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