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 Summary

    Modifier and Type
    Method
    Description
    void
    onFailure(HttpContext context, Throwable error)
    On Completed callback for API calls
    void
    onSuccess(HttpContext context, T response)
    On Completed callback for API calls
  • Method Details

    • 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