Class ReportProjectUserOrVersion
java.lang.Object
masecla.modrinth4j.endpoints.generic.Endpoint<ReportProjectUserOrVersion.ReportProjectUserOrVersionResponse,ReportProjectUserOrVersion.ReportProjectUserOrVersionRequest>
masecla.modrinth4j.endpoints.user.ReportProjectUserOrVersion
public class ReportProjectUserOrVersion
extends Endpoint<ReportProjectUserOrVersion.ReportProjectUserOrVersionResponse,ReportProjectUserOrVersion.ReportProjectUserOrVersionRequest>
This endpoint is used to report a project, user, or version.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThis enum is used to represent the type of object being reported.static classThis class is used to represent the request.static classThis class is used to represent the response.static enumThis enum is used to represent the type of report. -
Constructor Summary
ConstructorsConstructorDescriptionReportProjectUserOrVersion(HttpClient client, com.google.gson.Gson gson) Creates a new instance of this endpoint. -
Method Summary
Modifier and TypeMethodDescriptionReturns the endpointReturns the methodcom.google.gson.reflect.TypeToken<ReportProjectUserOrVersion.ReportProjectUserOrVersionRequest> Returns the request classcom.google.gson.reflect.TypeToken<ReportProjectUserOrVersion.ReportProjectUserOrVersionResponse> Returns the response classMethods inherited from class masecla.modrinth4j.endpoints.generic.Endpoint
checkBodyForErrors, executeRequest, getReplacedUrl, isJsonBody, readFile, readStream, requiresBody, sendRequest, sendRequest
-
Constructor Details
-
ReportProjectUserOrVersion
Creates a new instance of this endpoint.- Parameters:
client- The client to use.gson- The gson instance to use.
-
-
Method Details
-
getEndpoint
Returns the endpoint- Specified by:
getEndpointin classEndpoint<ReportProjectUserOrVersion.ReportProjectUserOrVersionResponse,ReportProjectUserOrVersion.ReportProjectUserOrVersionRequest> - Returns:
- - The endpoint of the request.
-
getRequestClass
public com.google.gson.reflect.TypeToken<ReportProjectUserOrVersion.ReportProjectUserOrVersionRequest> getRequestClass()Returns the request class- Specified by:
getRequestClassin classEndpoint<ReportProjectUserOrVersion.ReportProjectUserOrVersionResponse,ReportProjectUserOrVersion.ReportProjectUserOrVersionRequest> - Returns:
- - The
TypeTokenof the request.
-
getResponseClass
public com.google.gson.reflect.TypeToken<ReportProjectUserOrVersion.ReportProjectUserOrVersionResponse> getResponseClass()Returns the response class- Specified by:
getResponseClassin classEndpoint<ReportProjectUserOrVersion.ReportProjectUserOrVersionResponse,ReportProjectUserOrVersion.ReportProjectUserOrVersionRequest> - Returns:
- - The
TypeTokenof the response.
-
getMethod
Returns the method- Overrides:
getMethodin classEndpoint<ReportProjectUserOrVersion.ReportProjectUserOrVersionResponse,ReportProjectUserOrVersion.ReportProjectUserOrVersionRequest> - Returns:
- - The method to use.
-