Interface APICallBack<T>

  • All Known Implementing Classes:
    APICallBackCatcher

    public interface APICallBack<T>
    Callback class for handling API calls with a templated response type T
    • Method Detail

      • onSuccess

        void onSuccess​(HttpContext context,
                       T response)
        On Completed callback for API calls
        Parameters:
        context - The context of the API request
        response - The response received from the API Call
      • onFailure

        void onFailure​(HttpContext context,
                       Throwable error)
        On Completed callback for API calls
        Parameters:
        context - The context of the API request
        error - Any error detected during the API Call and/or deserialization