Interface IServerCallback

All Known Subinterfaces:
IAchievementsDelegate
All Known Implementing Classes:
BrainCloudWrapper, IdentityCallback, LobbyService, RTTComms, SmartSwitchCallback, 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 interface IServerCallback
  • Method Summary

    Modifier and Type Method Description
    void serverCallback​(ServiceName serviceName, ServiceOperation serviceOperation, org.json.JSONObject jsonData)
    The serverCallback() method returns server data back to the layer interfacing with the BrainCloud library.
    void serverError​(ServiceName serviceName, ServiceOperation serviceOperation, int statusCode, int reasonCode, String jsonError)
    Errors are returned back to the layer which is interfacing with the BrainCloud library through the serverError() callback.
  • Method Details

    • serverCallback

      void serverCallback​(ServiceName serviceName, ServiceOperation serviceOperation, org.json.JSONObject jsonData)
      The serverCallback() method returns server data back to the layer interfacing with the BrainCloud library.
      Parameters:
      serviceName - - name of the requested service
      serviceOperation - - requested operation
      jsonData - - returned data from the server
    • serverError

      void serverError​(ServiceName serviceName, ServiceOperation serviceOperation, int statusCode, int reasonCode, String jsonError)
      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.
      Parameters:
      serviceName - - name of the requested service
      serviceOperation - - requested operation
      statusCode - The error status return code (400, 403, 500, etc)
      reasonCode - The brainCloud reason code (see reason codes on apidocs site)
      jsonError - The error json string