Class Request<R>

java.lang.Object
io.github.matyrobbrt.curseforgeapi.request.GenericRequest
io.github.matyrobbrt.curseforgeapi.request.Request<R>

public class Request<R> extends GenericRequest
  • Constructor Details

    • Request

      public Request(String endpoint, Method method, com.google.gson.JsonElement body, BiFunction<com.google.gson.Gson,com.google.gson.JsonObject,R> responseDecoder)
    • Request

      public Request(String endpoint, Method method, BiFunction<com.google.gson.Gson,com.google.gson.JsonObject,R> responseDecoder)
    • Request

      public Request(String endpoint, Method method, com.google.gson.JsonElement body, String responseObjectName, Type type)
    • Request

      public Request(String endpoint, Method method, String responseObjectName, Type type)
  • Method Details

    • decodeResponse

      public R decodeResponse(com.google.gson.Gson gson, com.google.gson.JsonObject response)