Class GetProjectDependencies
java.lang.Object
masecla.modrinth4j.endpoints.generic.Endpoint<GetProjectDependencies.GetProjectDependenciesResponse,EmptyRequest>
masecla.modrinth4j.endpoints.project.GetProjectDependencies
public class GetProjectDependencies
extends Endpoint<GetProjectDependencies.GetProjectDependenciesResponse,EmptyRequest>
This endpoint is used to get a project's dependencies.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents the response from the endpoint. -
Constructor Summary
ConstructorsConstructorDescriptionGetProjectDependencies(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<GetProjectDependencies.GetProjectDependenciesResponse> 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
-
GetProjectDependencies
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<GetProjectDependencies.GetProjectDependenciesResponse,EmptyRequest> - Returns:
- - The endpoint of the request.
-
getRequestClass
Returns the request class.- Specified by:
getRequestClassin classEndpoint<GetProjectDependencies.GetProjectDependenciesResponse,EmptyRequest> - Returns:
- - The
TypeTokenfor the response.
-
getResponseClass
public com.google.gson.reflect.TypeToken<GetProjectDependencies.GetProjectDependenciesResponse> getResponseClass()Returns the response class.- Specified by:
getResponseClassin classEndpoint<GetProjectDependencies.GetProjectDependenciesResponse,EmptyRequest> - Returns:
- - The
TypeTokenfor the response.
-