Class BulkModifyProjects
java.lang.Object
masecla.modrinth4j.endpoints.generic.Endpoint<EmptyResponse,BulkModifyProjects.BulkModifyProjectsRequest>
masecla.modrinth4j.endpoints.project.BulkModifyProjects
public class BulkModifyProjects
extends Endpoint<EmptyResponse,BulkModifyProjects.BulkModifyProjectsRequest>
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBulkModifyProjects(HttpClient client, com.google.gson.Gson gson) Creates a new instance of the endpoint. -
Method Summary
Modifier and TypeMethodDescriptionGets the endpoint of the request.Returns the method of the request.protected StringgetReplacedUrl(BulkModifyProjects.BulkModifyProjectsRequest request, Map<String, String> parameters) Injects the project ID into the URL.com.google.gson.reflect.TypeToken<BulkModifyProjects.BulkModifyProjectsRequest> 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, isJsonBody, readFile, readStream, requiresBody, sendRequest, sendRequest
-
Constructor Details
-
BulkModifyProjects
Creates a new instance of the endpoint.- Parameters:
client- - The client to use.gson- - The gson instance to use.
-
-
Method Details
-
getEndpoint
Gets the endpoint of the request.- Specified by:
getEndpointin classEndpoint<EmptyResponse,BulkModifyProjects.BulkModifyProjectsRequest> - Returns:
- The endpoint of the request.
-
getRequestClass
public com.google.gson.reflect.TypeToken<BulkModifyProjects.BulkModifyProjectsRequest> getRequestClass()Returns the request class.- Specified by:
getRequestClassin classEndpoint<EmptyResponse,BulkModifyProjects.BulkModifyProjectsRequest> - Returns:
- - The
TypeTokenfor the response.
-
getResponseClass
Returns the response class.- Specified by:
getResponseClassin classEndpoint<EmptyResponse,BulkModifyProjects.BulkModifyProjectsRequest> - Returns:
- - The
TypeTokenfor the response.
-
getReplacedUrl
protected String getReplacedUrl(BulkModifyProjects.BulkModifyProjectsRequest request, Map<String, String> parameters) Injects the project ID into the URL.- Overrides:
getReplacedUrlin classEndpoint<EmptyResponse,BulkModifyProjects.BulkModifyProjectsRequest> - Parameters:
request- - The request to use.parameters- - The parameters to use.- Returns:
- - The replaced URL.
-
getMethod
Returns the method of the request.- Overrides:
getMethodin classEndpoint<EmptyResponse,BulkModifyProjects.BulkModifyProjectsRequest> - Returns:
- - The method to use.
-