Class IdentityCallback

java.lang.Object
com.bitheads.braincloud.client.IdentityCallback
All Implemented Interfaces:
IServerCallback

public class IdentityCallback
extends Object
implements IServerCallback
  • Constructor Details

  • Method Details

    • serverCallback

      public void serverCallback​(ServiceName serviceName, ServiceOperation serviceOperation, org.json.JSONObject jsonData)
      Description copied from interface: IServerCallback
      The serverCallback() method returns server data back to the layer interfacing with the BrainCloud library.
      Specified by:
      serverCallback in interface IServerCallback
      Parameters:
      serviceName - - name of the requested service
      serviceOperation - - requested operation
      jsonData - - 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: IServerCallback
      Errors 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:
      serverError in interface IServerCallback
      Parameters:
      in_serviceName - - name of the requested service
      in_serviceOperation - - requested operation
      in_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