Class BybitApiCallbackAdapter<T>

  • All Implemented Interfaces:
    retrofit2.Callback<T>

    public class BybitApiCallbackAdapter<T>
    extends Object
    implements retrofit2.Callback<T>
    • Constructor Detail

      • BybitApiCallbackAdapter

        public BybitApiCallbackAdapter​(BybitApiCallback<T> callback)
    • Method Detail

      • onResponse

        public void onResponse​(@NotNull
                               retrofit2.Call<T> call,
                               retrofit2.Response<T> response)
        Specified by:
        onResponse in interface retrofit2.Callback<T>
      • onFailure

        public void onFailure​(@NotNull
                              retrofit2.Call<T> call,
                              @NotNull
                              Throwable throwable)
        Specified by:
        onFailure in interface retrofit2.Callback<T>