Interface D1Task.ConfigCallback<T>

Type Parameters:
T - The type of the returning data.
Enclosing class:
D1Task

public static interface D1Task.ConfigCallback<T>
Configuration callback to return the result of an asynchronous call.
Since:
1.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onError(List<D1Exception> exceptions)
    The request failed while executing.
    void
    onSuccess(T data)
    The request has been successfully executed.
  • Method Details

    • onSuccess

      void onSuccess(@Nullable T data)
      The request has been successfully executed.
      Parameters:
      data - The result of the request. This argument is always null.
    • onError

      void onError(@NonNull List<D1Exception> exceptions)
      The request failed while executing.
      Parameters:
      exceptions - The cause of the failures.