public class ChangeProjectIcon extends Endpoint<EmptyResponse,ChangeProjectIcon.ChangeProjectIconRequest>
| Modifier and Type | Class and Description |
|---|---|
static class |
ChangeProjectIcon.ChangeProjectIconRequest
Represents the data for a project.
|
| Constructor and Description |
|---|
ChangeProjectIcon(HttpClient client,
com.google.gson.Gson gson)
Creates a new instance of the endpoint.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getEndpoint()
Gets the endpoint of the request.
|
String |
getMethod()
Returns the method of the request.
|
protected String |
getReplacedUrl(ChangeProjectIcon.ChangeProjectIconRequest request,
Map<String,String> parameters)
Injects the file extension into the URL.
|
com.google.gson.reflect.TypeToken<ChangeProjectIcon.ChangeProjectIconRequest> |
getRequestClass()
Returns the request class.
|
com.google.gson.reflect.TypeToken<EmptyResponse> |
getResponseClass()
Returns the response class.
|
CompletableFuture<EmptyResponse> |
sendRequest(ChangeProjectIcon.ChangeProjectIconRequest request,
Map<String,String> urlParams)
Sends the request.
|
checkBodyForErrors, executeRequest, isJsonBody, readFile, readStream, requiresBody, sendRequestpublic ChangeProjectIcon(HttpClient client, com.google.gson.Gson gson)
client - - The client to use.gson - - The gson instance to use.public String getEndpoint()
getEndpoint in class Endpoint<EmptyResponse,ChangeProjectIcon.ChangeProjectIconRequest>public com.google.gson.reflect.TypeToken<ChangeProjectIcon.ChangeProjectIconRequest> getRequestClass()
getRequestClass in class Endpoint<EmptyResponse,ChangeProjectIcon.ChangeProjectIconRequest>TypeToken for the response.public com.google.gson.reflect.TypeToken<EmptyResponse> getResponseClass()
getResponseClass in class Endpoint<EmptyResponse,ChangeProjectIcon.ChangeProjectIconRequest>TypeToken for the response.protected String getReplacedUrl(ChangeProjectIcon.ChangeProjectIconRequest request, Map<String,String> parameters)
getReplacedUrl in class Endpoint<EmptyResponse,ChangeProjectIcon.ChangeProjectIconRequest>request - - The request to use.parameters - - The parameters to use.public CompletableFuture<EmptyResponse> sendRequest(ChangeProjectIcon.ChangeProjectIconRequest request, Map<String,String> urlParams)
sendRequest in class Endpoint<EmptyResponse,ChangeProjectIcon.ChangeProjectIconRequest>request - - The request to use.urlParams - - The URL parameters to use.CompletableFuture that will return the response.public String getMethod()
getMethod in class Endpoint<EmptyResponse,ChangeProjectIcon.ChangeProjectIconRequest>Copyright © 2026. All rights reserved.