Class GsonFactory

java.lang.Object
com.amilesend.client.parse.GsonFactoryBase<OneDriveConnection>
com.amilesend.onedrive.parse.GsonFactory

public class GsonFactory extends com.amilesend.client.parse.GsonFactoryBase<OneDriveConnection>
Factory that vends new pre-configured Gson instances.
  • Constructor Details

    • GsonFactory

      public GsonFactory()
  • Method Details

    • getInstanceForAuthManager

      public static com.google.gson.Gson getInstanceForAuthManager()
      Gets the Gson instance that is configured for use by OneDriveAuthManager.
      Returns:
      the pre-configured Gson instance
    • getInstanceForStateManager

      public static com.google.gson.Gson getInstanceForStateManager()
      Gets the Gson instance that is configured for use by OneDriveFactoryStateManager.
      Returns:
      the pre-configured Gson instance
    • getInstanceForServiceDiscovery

      public static com.google.gson.Gson getInstanceForServiceDiscovery()
      Gets the Gson instance that is configured for use by BusinessAccountAuthManager.
      Returns:
      the pre-configured Gson instance