Package com.bitheads.braincloud.client
Class SmartSwitchCallback
java.lang.Object
com.bitheads.braincloud.client.SmartSwitchCallback
- All Implemented Interfaces:
IServerCallback
- Direct Known Subclasses:
SmartSwitchCallback.SmartSwitchAdvanced,SmartSwitchCallback.SmartSwitchApple,SmartSwitchCallback.SmartSwitchEmail,SmartSwitchCallback.SmartSwitchExternal,SmartSwitchCallback.SmartSwitchFacebook,SmartSwitchCallback.SmartSwitchGoogle,SmartSwitchCallback.SmartSwitchGoogleOpenId,SmartSwitchCallback.SmartSwitchOculus,SmartSwitchCallback.SmartSwitchSteam,SmartSwitchCallback.SmartSwitchTwitter,SmartSwitchCallback.SmartSwitchUltra,SmartSwitchCallback.SmartSwitchUniversal
public class SmartSwitchCallback extends Object implements IServerCallback
Smart Switch Authenticate will logout of the current profile, and switch to the new authentication type.
In event the current session was previously an anonymous account, the smart switch will delete that profile.
Use this function to keep a clean designflow from anonymous to signed profiles
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classSmartSwitchCallback.SmartSwitchAdvancedclassSmartSwitchCallback.SmartSwitchAppleclassSmartSwitchCallback.SmartSwitchEmailclassSmartSwitchCallback.SmartSwitchExternalSmart Switch Authenticate will logout of the current profile, and switch to the new authentication type.classSmartSwitchCallback.SmartSwitchFacebookclassSmartSwitchCallback.SmartSwitchGoogleclassSmartSwitchCallback.SmartSwitchGoogleOpenIdclassSmartSwitchCallback.SmartSwitchOculusclassSmartSwitchCallback.SmartSwitchSteamclassSmartSwitchCallback.SmartSwitchTwitterclassSmartSwitchCallback.SmartSwitchUltraclassSmartSwitchCallback.SmartSwitchUniversal -
Field Summary
Fields Modifier and Type Field Description protected IServerCallback_callbackprotected IBrainCloudWrapper_wrapper -
Constructor Summary
Constructors Constructor Description SmartSwitchCallback(IBrainCloudWrapper in_wrapper, IServerCallback in_callback) -
Method Summary
Modifier and Type Method Description voidclearIds()voidserverCallback(ServiceName serviceName, ServiceOperation serviceOperation, org.json.JSONObject jsonData)The serverCallback() method returns server data back to the layer interfacing with the BrainCloud library.voidserverError(ServiceName in_serviceName, ServiceOperation in_serviceOperation, int in_statusCode, int in_reasonCode, String jsonString)Errors are returned back to the layer which is interfacing with the BrainCloud library through the serverError() callback.
-
Field Details
-
_wrapper
-
_callback
-
-
Constructor Details
-
SmartSwitchCallback
-
-
Method Details
-
clearIds
public void clearIds() -
serverCallback
public void serverCallback(ServiceName serviceName, ServiceOperation serviceOperation, org.json.JSONObject jsonData)Description copied from interface:IServerCallbackThe serverCallback() method returns server data back to the layer interfacing with the BrainCloud library.- Specified by:
serverCallbackin interfaceIServerCallback- Parameters:
serviceName- - name of the requested serviceserviceOperation- - requested operationjsonData- - returned data from the server
-
serverError
public void serverError(ServiceName in_serviceName, ServiceOperation in_serviceOperation, int in_statusCode, int in_reasonCode, String jsonString)Description copied from interface:IServerCallbackErrors are returned back to the layer which is interfacing with the BrainCloud library through the serverError() callback. A server error might indicate a failure of the client to communicate with the server after N retries.- Specified by:
serverErrorin interfaceIServerCallback- Parameters:
in_serviceName- - name of the requested servicein_serviceOperation- - requested operationin_statusCode- The error status return code (400, 403, 500, etc)in_reasonCode- The brainCloud reason code (see reason codes on apidocs site)jsonString- The error json string
-