Class ListItemInstanceCreator

java.lang.Object
com.amilesend.onedrive.parse.resource.creator.ListItemInstanceCreator
All Implemented Interfaces:
com.google.gson.InstanceCreator<ListItem>

public class ListItemInstanceCreator extends Object implements com.google.gson.InstanceCreator<ListItem>
A custom InstanceCreator implementation that injects the OneDriveConnection to the resource type so that method operations can be performed on the ListItem resource.
  • Constructor Details

    • ListItemInstanceCreator

      public ListItemInstanceCreator(OneDriveConnection connection)
      Creates a new ListItemInstanceCreator instance.
      Parameters:
      connection - The current client connection instance.
  • Method Details

    • createInstance

      public ListItem createInstance(Type type)
      Creates a new ListItem with the current client connection instance.
      Specified by:
      createInstance in interface com.google.gson.InstanceCreator<ListItem>