Class Request<R>
java.lang.Object
io.github.matyrobbrt.curseforgeapi.request.GenericRequest
io.github.matyrobbrt.curseforgeapi.request.Request<R>
-
Constructor Summary
ConstructorDescriptionRequest
(String endpoint, Method method, com.google.gson.JsonElement body, String responseObjectName, Type type) Request
(String endpoint, Method method, com.google.gson.JsonElement body, BiFunction<com.google.gson.Gson, com.google.gson.JsonObject, R> responseDecoder) Request
(String endpoint, Method method, BiFunction<com.google.gson.Gson, com.google.gson.JsonObject, R> responseDecoder) -
Method Summary
Modifier and TypeMethodDescriptiondecodeResponse
(com.google.gson.Gson gson, com.google.gson.JsonObject response) Methods inherited from class io.github.matyrobbrt.curseforgeapi.request.GenericRequest
body, endpoint, method
-
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
-
Request
-
-
Method Details
-
decodeResponse
-