Class PaginatedEndpoint<T,O extends PaginatedEndpoint.PaginatedResponse<T>,I extends PaginatedEndpoint.PaginatedRequest>
java.lang.Object
masecla.modrinth4j.endpoints.generic.Endpoint<O,I>
masecla.modrinth4j.endpoints.generic.PaginatedEndpoint<T,O,I>
- Type Parameters:
T- The type of the hits.O- The type of the response.I- The type of the request.
- Direct Known Subclasses:
SearchEndpoint
public abstract class PaginatedEndpoint<T,O extends PaginatedEndpoint.PaginatedResponse<T>,I extends PaginatedEndpoint.PaginatedRequest>
extends Endpoint<O,I>
This class is used to represent a paginated endpoint.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis class is used to represent a paginated request.static classThis class is used to represent a paginated response. -
Constructor Summary
ConstructorsConstructorDescriptionPaginatedEndpoint(HttpClient client, com.google.gson.Gson gson) Creates a new instance of the endpoint. -
Method Summary
Methods inherited from class masecla.modrinth4j.endpoints.generic.Endpoint
checkBodyForErrors, executeRequest, getEndpoint, getMethod, getReplacedUrl, getRequestClass, getResponseClass, isJsonBody, readFile, readStream, requiresBody, sendRequest, sendRequest
-
Constructor Details
-
PaginatedEndpoint
Creates a new instance of the endpoint.- Parameters:
client- The client to use.gson- The gson instance to use.
-