Class GetDonationPlatforms
java.lang.Object
masecla.modrinth4j.endpoints.generic.Endpoint<List<DonationPlatform>,EmptyRequest>
masecla.modrinth4j.endpoints.tags.GetDonationPlatforms
This endpoint is used to get a list of donation platforms.
-
Constructor Summary
ConstructorsConstructorDescriptionGetDonationPlatforms(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.com.google.gson.reflect.TypeToken<List<DonationPlatform>> 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
-
GetDonationPlatforms
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<DonationPlatform>,EmptyRequest> - Returns:
- - The endpoint of the request.
-
getRequestClass
Returns the request class.- Specified by:
getRequestClassin classEndpoint<List<DonationPlatform>,EmptyRequest> - Returns:
- - The
TypeTokenfor the response.
-
getResponseClass
Returns the response class.- Specified by:
getResponseClassin classEndpoint<List<DonationPlatform>,EmptyRequest> - Returns:
- - The
TypeTokenfor the response.
-