Class ListResponseBodyParser<T>

java.lang.Object
com.amilesend.onedrive.parse.resource.parser.ListResponseBodyParser<T>
Type Parameters:
T - the object type
All Implemented Interfaces:
com.amilesend.client.parse.parser.GsonParser<List<T>>

public class ListResponseBodyParser<T> extends Object implements com.amilesend.client.parse.parser.GsonParser<List<T>>
Defines a GsonParser implementation for a response body that contains a list of items.
  • Constructor Details

    • ListResponseBodyParser

      public ListResponseBodyParser(@NonNull Class<T> clazz)
  • Method Details

    • parse

      public List<T> parse(@NonNull com.google.gson.Gson gson, @NonNull InputStream jsonStream)
      Specified by:
      parse in interface com.amilesend.client.parse.parser.GsonParser<T>