Class Requester<T>

java.lang.Object
pw.chew.clickup4j.internal.requests.Requester<T>

public class Requester<T> extends Object
  • Field Details

    • JSON

      public static final okhttp3.MediaType JSON
  • Constructor Details

    • Requester

      public Requester(okhttp3.OkHttpClient client, okhttp3.Request request, Function<String,T> handler)
  • Method Details

    • queue

      public void queue(Consumer<T> onSuccess, Consumer<Throwable> onFailure)
    • queue

      public void queue(Consumer<T> onSuccess)
      Queues this request. The onSuccess callback will be called when the request completes successfully.
      Parameters:
      onSuccess - The callback to call when the request completes successfully.
    • complete

      public T complete()