Package com.bitheads.braincloud.client
Class IdentityCallback
java.lang.Object
com.bitheads.braincloud.client.IdentityCallback
- All Implemented Interfaces:
IServerCallback
public class IdentityCallback extends Object implements IServerCallback
-
Constructor Summary
Constructors Constructor Description IdentityCallback(IBrainCloudWrapper in_wrapper, IServerCallback in_callback) -
Method Summary
Modifier and Type Method Description 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.
-
Constructor Details
-
IdentityCallback
-
-
Method Details
-
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
-