Class ScheduleProject
java.lang.Object
masecla.modrinth4j.endpoints.generic.Endpoint<EmptyResponse,ScheduleProject.ScheduleProjectRequest>
masecla.modrinth4j.endpoints.project.ScheduleProject
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents a request to schedule a project. -
Constructor Summary
ConstructorsConstructorDescriptionScheduleProject(HttpClient client, com.google.gson.Gson gson) Creates a new instance of the endpoint. -
Method Summary
Modifier and TypeMethodDescriptionReturns the endpointReturns the method to use.com.google.gson.reflect.TypeToken<ScheduleProject.ScheduleProjectRequest> Returns the request class.com.google.gson.reflect.TypeToken<EmptyResponse> Returns the response class.Methods inherited from class masecla.modrinth4j.endpoints.generic.Endpoint
checkBodyForErrors, executeRequest, getReplacedUrl, isJsonBody, readFile, readStream, requiresBody, sendRequest, sendRequest
-
Constructor Details
-
ScheduleProject
Creates a new instance of the endpoint.- Parameters:
client- - the client to usegson- - the gson instance to use
-
-
Method Details
-
getEndpoint
Returns the endpoint- Specified by:
getEndpointin classEndpoint<EmptyResponse,ScheduleProject.ScheduleProjectRequest> - Returns:
- - The endpoint
-
getRequestClass
Returns the request class.- Specified by:
getRequestClassin classEndpoint<EmptyResponse,ScheduleProject.ScheduleProjectRequest> - Returns:
- - The
TypeTokenfor the request.
-
getResponseClass
Returns the response class.- Specified by:
getResponseClassin classEndpoint<EmptyResponse,ScheduleProject.ScheduleProjectRequest> - Returns:
- - The
TypeTokenfor the response.
-
getMethod
Description copied from class:EndpointReturns the method to use.- Overrides:
getMethodin classEndpoint<EmptyResponse,ScheduleProject.ScheduleProjectRequest> - Returns:
- - The method to use.
-