Class ScheduleVersion
java.lang.Object
masecla.modrinth4j.endpoints.generic.Endpoint<EmptyResponse,ScheduleVersion.ScheduleVersionRequest>
masecla.modrinth4j.endpoints.version.ScheduleVersion
This endpoint is used to schedule a version.
Should be used after creating a version.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents a request to schedule a version. -
Constructor Summary
ConstructorsConstructorDescriptionScheduleVersion(HttpClient client, com.google.gson.Gson gson) Creates a new instance of theScheduleVersionendpoint. -
Method Summary
Modifier and TypeMethodDescriptionThis URL of the endpoint.Returns the method of the endpoint.com.google.gson.reflect.TypeToken<ScheduleVersion.ScheduleVersionRequest> Returns the request class to use.com.google.gson.reflect.TypeToken<EmptyResponse> 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
-
ScheduleVersion
Creates a new instance of theScheduleVersionendpoint.- Parameters:
client- TheHttpClientto use.gson- TheGsoninstance to use.
-
-
Method Details
-
getEndpoint
This URL of the endpoint.- Specified by:
getEndpointin classEndpoint<EmptyResponse,ScheduleVersion.ScheduleVersionRequest> - Returns:
- - The endpoint of the request.
-
getRequestClass
Returns the request class to use.- Specified by:
getRequestClassin classEndpoint<EmptyResponse,ScheduleVersion.ScheduleVersionRequest> - Returns:
- - The
TypeTokenof the request.
-
getResponseClass
Returns the response class to use.- Specified by:
getResponseClassin classEndpoint<EmptyResponse,ScheduleVersion.ScheduleVersionRequest> - Returns:
- - The
TypeTokenof the response.
-
getMethod
Returns the method of the endpoint.- Overrides:
getMethodin classEndpoint<EmptyResponse,ScheduleVersion.ScheduleVersionRequest> - Returns:
- - The method to use.
-