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.
  • Constructor Details

    • PaginatedEndpoint

      public PaginatedEndpoint(HttpClient client, com.google.gson.Gson gson)
      Creates a new instance of the endpoint.
      Parameters:
      client - The client to use.
      gson - The gson instance to use.