Class GetRandomProjects
java.lang.Object
masecla.modrinth4j.endpoints.generic.Endpoint<List<Project>,EmptyRequest>
masecla.modrinth4j.endpoints.project.GetRandomProjects
Gets a list of random projects.
-
Constructor Summary
ConstructorsConstructorDescriptionGetRandomProjects(HttpClient client, com.google.gson.Gson gson) Creates a new instance of the endpoint. -
Method Summary
Modifier and TypeMethodDescriptionReturns the endpoint of the request.com.google.gson.reflect.TypeToken<EmptyRequest> Returns theTypeTokenof the request.Returns theTypeTokenof the response;Methods inherited from class masecla.modrinth4j.endpoints.generic.Endpoint
checkBodyForErrors, executeRequest, getMethod, getReplacedUrl, isJsonBody, readFile, readStream, requiresBody, sendRequest, sendRequest
-
Constructor Details
-
GetRandomProjects
Creates a new instance of the endpoint.- Parameters:
client- - the client to usegson- - the gson instance to use
-
-
Method Details
-
getEndpoint
Description copied from class:EndpointReturns the endpoint of the request.- Specified by:
getEndpointin classEndpoint<List<Project>,EmptyRequest> - Returns:
- - The endpoint of the request.
-
getResponseClass
Description copied from class:EndpointReturns theTypeTokenof the response;- Specified by:
getResponseClassin classEndpoint<List<Project>,EmptyRequest> - Returns:
- - The
TypeTokenof the response.
-
getRequestClass
Description copied from class:EndpointReturns theTypeTokenof the request.- Specified by:
getRequestClassin classEndpoint<List<Project>,EmptyRequest> - Returns:
- - The
TypeTokenof the request.
-