Package classes

Interface API_ResultHandler<T>

  • Type Parameters:
    T - changes depending on the return type of the method.

    public interface API_ResultHandler<T>
    Pass an instance with all of our methods to receive results. onSuccess(Object) will be executed in the event of a successful call. onFailure(API_PreferabliException) will be executed in the event of a failed call.
    • Method Detail

      • onSuccess

        void onSuccess​(T data)
        Executed in the event of a successful call.
        Parameters:
        data - the data returned by the method.
      • onFailure

        void onFailure​(API_PreferabliException e)
        Executed in the event of a failed call.
        Parameters:
        e - the error that caused the failure.