Interface Handler<T>


  • public interface Handler<T>
    Interface to receive result of an async request
    • Method Detail

      • onSuccess

        void onSuccess​(T obtained)
        Will be invoked if the request finished successfully
        Parameters:
        obtained - data to return
      • onFailure

        void onFailure​(Error error)
        Callback that is called in case any error happens