Class ThumbnailSetListParser

java.lang.Object
com.amilesend.onedrive.parse.resource.parser.ThumbnailSetListParser
All Implemented Interfaces:
GsonParser<List<ThumbnailSet>>

public class ThumbnailSetListParser extends Object implements GsonParser<List<ThumbnailSet>>
Parses a response body that contains a list of ThumbnailSets.

Example response body:

 {
   "value": [
     {
       "id": "0",
       "small": { "height": 64, "width": 96, "url": "https://sn3302files..."},
       "medium": { "height": 117, "width": 176, "url": "https://sn3302files..."},
       "large": { "height": 533, "width": 800, "url": "https://sn3302files..."}
     }
   ]
 }
 
API Documentation
See Also:
  • Constructor Details

    • ThumbnailSetListParser

      public ThumbnailSetListParser()
  • Method Details

    • parse

      public List<ThumbnailSet> parse(@NonNull com.google.gson.Gson gson, @NonNull InputStream jsonStream)
      Description copied from interface: GsonParser
      Deserializes a JSON-formatted input stream to the defined POJO type.
      Specified by:
      parse in interface GsonParser<List<ThumbnailSet>>
      Parameters:
      gson - the Gson instance used to deserialize the string
      jsonStream - stream with expected JSON-formatted contents
      Returns:
      the parsed POJO instance