Class StatsAdapter

java.lang.Object
com.google.gson.TypeAdapter<Stats>
com.suse.salt.netapi.parser.StatsAdapter

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

  • 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