Package com.amilesend.onedrive.parse
Class GsonFactory
java.lang.Object
com.amilesend.onedrive.parse.GsonFactory
-
Method Summary
Modifier and TypeMethodDescriptionstatic GsonFactoryGets the singletonGsonFactoryinstance.com.google.gson.GsonGets theGsoninstance that is configured for use byAuthManager.com.google.gson.GsonGets theGsoninstance that is configured for use byBusinessAccountAuthManager.com.google.gson.GsonGets theGsoninstance that is configured for use byOneDriveFactoryStateManager.com.google.gson.GsonnewInstanceForConnection(OneDriveConnection oneDriveConnection) Gets a newGsoninstance that is configured for use byOneDriveConnection.
-
Method Details
-
getInstance
Gets the singletonGsonFactoryinstance.- Returns:
- the factory instance
-
getInstanceForAuthManager
public com.google.gson.Gson getInstanceForAuthManager()Gets theGsoninstance that is configured for use byAuthManager.- Returns:
- the pre-configured Gson instance
-
getInstanceForStateManager
public com.google.gson.Gson getInstanceForStateManager()Gets theGsoninstance that is configured for use byOneDriveFactoryStateManager.- Returns:
- the pre-configured Gson instance
-
getInstanceForServiceDiscovery
public com.google.gson.Gson getInstanceForServiceDiscovery()Gets theGsoninstance that is configured for use byBusinessAccountAuthManager.- Returns:
- the pre-configured Gson instance
-
newInstanceForConnection
Gets a newGsoninstance that is configured for use byOneDriveConnection.- Returns:
- the pre-configured Gson instance
-