Class ModifyVersion
java.lang.Object
masecla.modrinth4j.endpoints.generic.Endpoint<ProjectVersion,ModifyVersion.ModifyVersionRequest>
masecla.modrinth4j.endpoints.version.ModifyVersion
This endpoint is used to modify a version.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents a request to modify a version. -
Constructor Summary
ConstructorsConstructorDescriptionModifyVersion(HttpClient client, com.google.gson.Gson gson) Creates a new instance of theModifyVersionendpoint. -
Method Summary
Modifier and TypeMethodDescriptionThis URL of the endpoint.Returns the method of the endpoint.com.google.gson.reflect.TypeToken<ModifyVersion.ModifyVersionRequest> Returns the request class to use.com.google.gson.reflect.TypeToken<ProjectVersion> Returns the response class to use.Methods inherited from class masecla.modrinth4j.endpoints.generic.Endpoint
checkBodyForErrors, executeRequest, getReplacedUrl, isJsonBody, readFile, readStream, requiresBody, sendRequest, sendRequest
-
Constructor Details
-
ModifyVersion
Creates a new instance of theModifyVersionendpoint.- Parameters:
client- TheHttpClientto use.gson- TheGsoninstance to use.
-
-
Method Details
-
getEndpoint
This URL of the endpoint.- Specified by:
getEndpointin classEndpoint<ProjectVersion,ModifyVersion.ModifyVersionRequest> - Returns:
- - The endpoint of the request.
-
getRequestClass
Returns the request class to use.- Specified by:
getRequestClassin classEndpoint<ProjectVersion,ModifyVersion.ModifyVersionRequest> - Returns:
- - The
TypeTokenof the request.
-
getResponseClass
Returns the response class to use.- Specified by:
getResponseClassin classEndpoint<ProjectVersion,ModifyVersion.ModifyVersionRequest> - Returns:
- - The
TypeTokenof the response.
-
getMethod
Returns the method of the endpoint.- Overrides:
getMethodin classEndpoint<ProjectVersion,ModifyVersion.ModifyVersionRequest> - Returns:
- - The method to use.
-