public class GetVersionByHash extends Endpoint<ProjectVersion,GetVersionByHash.GetVersionByHashRequest>
| Modifier and Type | Class and Description |
|---|---|
static class |
GetVersionByHash.GetVersionByHashRequest
This class is used to represent the request.
|
| Constructor and Description |
|---|
GetVersionByHash(HttpClient client,
com.google.gson.Gson gson)
Creates a new instance of the endpoint.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getEndpoint()
Returns the endpoint.
|
com.google.gson.reflect.TypeToken<GetVersionByHash.GetVersionByHashRequest> |
getRequestClass()
Returns the request class.
|
com.google.gson.reflect.TypeToken<ProjectVersion> |
getResponseClass()
Returns the response class.
|
boolean |
isJsonBody()
Whether or not the request is a json body.
|
checkBodyForErrors, executeRequest, getMethod, getReplacedUrl, readFile, readStream, requiresBody, sendRequest, sendRequestpublic GetVersionByHash(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<ProjectVersion,GetVersionByHash.GetVersionByHashRequest>public com.google.gson.reflect.TypeToken<GetVersionByHash.GetVersionByHashRequest> getRequestClass()
getRequestClass in class Endpoint<ProjectVersion,GetVersionByHash.GetVersionByHashRequest>TypeToken for the response.public com.google.gson.reflect.TypeToken<ProjectVersion> getResponseClass()
getResponseClass in class Endpoint<ProjectVersion,GetVersionByHash.GetVersionByHashRequest>TypeToken for the response.public boolean isJsonBody()
isJsonBody in class Endpoint<ProjectVersion,GetVersionByHash.GetVersionByHashRequest>Copyright © 2026. All rights reserved.