Class GetLicenses
java.lang.Object
masecla.modrinth4j.endpoints.generic.Endpoint<List<License>,EmptyRequest>
masecla.modrinth4j.endpoints.tags.GetLicenses
This endpoint is used to get a list of licenses.
-
Constructor Summary
ConstructorsConstructorDescriptionGetLicenses(HttpClient client, com.google.gson.Gson gson) Creates a new instance of the endpoint. -
Method Summary
Modifier and TypeMethodDescriptionReturns the endpoint.com.google.gson.reflect.TypeToken<EmptyRequest> Returns the request class.Returns the response class.Methods inherited from class masecla.modrinth4j.endpoints.generic.Endpoint
checkBodyForErrors, executeRequest, getMethod, getReplacedUrl, isJsonBody, readFile, readStream, requiresBody, sendRequest, sendRequest
-
Constructor Details
-
GetLicenses
Creates a new instance of the endpoint.- Parameters:
client- The client to use.gson- The gson instance to use.
-
-
Method Details
-
getEndpoint
Returns the endpoint.- Specified by:
getEndpointin classEndpoint<List<License>,EmptyRequest> - Returns:
- - The endpoint of the request.
-
getRequestClass
Returns the request class.- Specified by:
getRequestClassin classEndpoint<List<License>,EmptyRequest> - Returns:
- - The
TypeTokenfor the response.
-
getResponseClass
Returns the response class.- Specified by:
getResponseClassin classEndpoint<List<License>,EmptyRequest> - Returns:
- - The
TypeTokenfor the response.
-