Class DeleteUser
java.lang.Object
masecla.modrinth4j.endpoints.generic.Endpoint<EmptyResponse,EmptyRequest>
masecla.modrinth4j.endpoints.user.DeleteUser
This endpoint is used to delete a user.
-
Constructor Summary
ConstructorsConstructorDescriptionDeleteUser(HttpClient client, com.google.gson.Gson gson) Creates a new instance of the endpoint. -
Method Summary
Modifier and TypeMethodDescriptionReturns the endpoint.Returns the method.com.google.gson.reflect.TypeToken<EmptyRequest> 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
-
DeleteUser
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<EmptyResponse,EmptyRequest> - Returns:
- - The endpoint of the request.
-
getRequestClass
Returns the request class.- Specified by:
getRequestClassin classEndpoint<EmptyResponse,EmptyRequest> - Returns:
- - The
TypeTokenfor the response.
-
getResponseClass
Returns the response class.- Specified by:
getResponseClassin classEndpoint<EmptyResponse,EmptyRequest> - Returns:
- - The
TypeTokenfor the response.
-
getMethod
Returns the method.- Overrides:
getMethodin classEndpoint<EmptyResponse,EmptyRequest> - Returns:
- - The HTTP method being used
-