Interface ServiceCallback<T>

  • Type Parameters:
    T - the generic type

    public interface ServiceCallback<T>
    Callback with the response for an Asynchronous request.
    • Method Detail

      • onResponse

        void onResponse​(Response<T> response)
        Called with the response.
        Parameters:
        response - the response
      • onFailure

        void onFailure​(java.lang.Exception e)
        Called if there is an error during the request.
        Parameters:
        e - the exception thrown during the request