Class SpecialDriveItemParser

java.lang.Object
com.amilesend.onedrive.parse.resource.parser.SpecialDriveItemParser
All Implemented Interfaces:
GsonParser<SpecialDriveItem>

public class SpecialDriveItemParser extends Object implements GsonParser<SpecialDriveItem>
Parses a response body that contains a SpecialDriveItem.
See Also:
  • Constructor Details

    • SpecialDriveItemParser

      public SpecialDriveItemParser(SpecialFolder.Type specialFolderType)
  • Method Details

    • parse

      public SpecialDriveItem 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<SpecialDriveItem>
      Parameters:
      gson - the Gson instance used to deserialize the string
      jsonStream - stream with expected JSON-formatted contents
      Returns:
      the parsed POJO instance