All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fun.freechat.client.api.CharacterApi Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
/*
 * FreeChat OpenAPI Definition
 * # FreeChat: Create Some Friends for Yourself with AI  English | [中文版](https://github.com/freechat-fun/freechat/blob/main/README.zh-CN.md)  ## Introduction Welcome! FreeChat aims to build a cloud-native, robust, and quickly commercializable enterprise-level AI virtual character platform.  It also serves as a prompt engineering platform.  ## Features - Primarily uses Java and emphasizes **security, robustness, scalability, traceability, and maintainability**. - Boasts **account systems and permission management**, supporting OAuth2 authentication. Introduces the \"organization\" concept and related permission constraint functions. - Extensively employs distributed technologies and caching to support **high concurrency** access. - Provides flexible character customization options, supports direct intervention in prompts, and supports **configuring multiple backends for each character**. - **Offers a comprehensive range of Open APIs**, with more than 180 interfaces and provides java/python/typescript SDKs. These interfaces enable easy construction of systems for end-users. - Supports setting **RAG** (Retrieval Augmented Generation) for characters. - Supports **long-term memory, preset memory** for characters. - Supports characters evoking **proactive chat**. - Supports setting **quota limits** for characters. - Supports characters **importing and exporting**. - Supports individual **debugging and sharing prompts**.  ## Snapshots ### On PC #### Home Page ![Home Page Snapshot](/img/snapshot_w1.jpg) #### Development View ![Development View Snapshot](/img/snapshot_w2.jpg) #### Chat View ![Chat View Snapshot](/img/snapshot_w3.jpg)  ### On Mobile ![Chat Snapshot 1](/img/snapshot_m1.jpg) ![Chat Snapshot 2](/img/snapshot_m2.jpg)
![Chat Snapshot 3](/img/snapshot_m3.jpg) ![Chat Snapshot 4](/img/snapshot_m4.jpg) ## Character Design ```mermaid flowchart TD A(Character) --> B(Profile) A --> C(Knowledge/RAG) A --> D(Album) A --> E(Backend-1) A --> F(Backend-n...) E --> G(Message Window) E --> H(Long Term Memory Settings) E --> I(Quota Limit) E --> J(Chat Prompt Task) E --> K(Greeting Prompt Task) E --> L(Moderation Settings) J --> M(Model & Parameters) J --> N(API Keys) J --> O(Prompt Refence) J --> P(Tool Specifications) O --> Q(Template) O --> R(Variables) O --> S(Version) O --> T(...) style K stroke-dasharray: 5, 5 style L stroke-dasharray: 5, 5 style P stroke-dasharray: 5, 5 ``` After setting up an unified persona and knowledge for a character, different backends can be configured. For example, different model may be adopted for different users based on cost considerations. ## How to Play ### Online Website You can visit [freechat.fun](https://www.freechat.fun) to experience FreeChat. Share your designed AI character! ### Running in a Kubernetes Cluster FreeChat is dedicated to the principles of cloud-native design. If you have a Kubernetes cluster, you can deploy FreeChat to your environment by following these steps: 1. Put the Kubernetes configuration file in the `configs/helm/` directory, named `kube-private.conf`. 2. Place the Helm configuration file in the same directory, named `values-private.yaml`. Make sure to reference the default `values.yaml` and customize the variables as needed. 3. Switch to the `scripts/` directory. 4. If needed, run `install-in.sh` to deploy `ingress-nginx` on the Kubernetes cluster. 5. If needed, run `install-cm.sh` to deploy `cert-manager` on the Kubernetes cluster, which automatically issues certificates for domains specified in `ingress.hosts`. 6. Run `install-pvc.sh` to install PersistentVolumeClaim resources. > By default, FreeChat operates files by accessing the \"local file system.\" You may want to use high-availability distributed storage in the cloud. As a cloud-native-designed system, we recommend interfacing through Kubernetes CSI to avoid individually adapting storage products for each cloud platform. Most cloud service providers offer cloud storage drivers for Kubernetes, with a series of predefined StorageClass resources. Please choose the appropriate configuration according to your actual needs and set it in Helm's `global.storageClass` option. > > *In the future, FreeChat may be refactored to use MinIO's APIs directly, as it is now installed in the Kubernetes cluster as a dependency (serving Milvus).* 7. Run `install.sh` script to install FreeChat and its dependencies. 8. FreeChat aims to provide Open API services. If you like the interactive experience of [freechat.fun](https://freechat.fun), run `install-web.sh` to deploy the front-end application. 9. Run `restart.sh` to restart the service. 10. If you modified any Helm configuration files, use `upgrade.sh` to update the corresponding Kubernetes resources. 11. To remove specific resources, run the `uninstall*.sh` script corresponding to the resource you want to uninstall. As a cloud-native application, the services FreeChat relies on are obtained and deployed to your cluster through the helm repository. If you prefer cloud services with SLA (Service Level Agreement) guarantees, simply make the relevant settings in `configs/helm/values-private.yaml`: ```yaml mysql: deployment: enabled: false url: auth: rootPassword: username: password: redis: deployment: enabled: false url: auth: password: milvus: deployment: enabled: false url: milvus: auth: token: ``` With this, FreeChat will not automatically install these services, but rather use the configuration information to connect directly. If your Kubernetes cluster does not have a standalone monitoring system, you can enable the following switch. This will install Prometheus and Grafana services in the same namespace, dedicated to monitoring the status of the services under the FreeChat application: ```yaml prometheus: deployment: enabled: true grafana: deployment: enabled: true ``` ### Running Locally You can also run FreeChat locally. Currently supported on MacOS and Linux (although only tested on MacOS). You need to install the Docker toolset and have a network that can access [Docker Hub](https://hub.docker.com/). Once ready, enter the `scripts/` directory and run `local-run.sh`, which will download and run the necessary docker containers. After a successful startup, you can access `http://localhost` via a browser to see the locally running freechat.fun. The built-in administrator username and password are \"admin:freechat\". Use `local-run.sh --help` to view the supported options of the script. Good luck! ### Running in an IDE To run FreeChat in an IDE, you need to start all dependent services first but do not need to run the container for the FreeChat application itself. You can execute the `scripts/local-deps.sh` script to start services like `MySQL`, `Redis`, `Milvus`, etc., locally. Once done, open and debug `freechat-start/src/main/java/fun/freechat/Application.java`。Make sure you have set the following startup VM options: ```shell -Dspring.config.location=classpath:/application.yml,classpath:/application-local.yml \\ -DAPP_HOME=local-data/freechat \\ -Dspring.profiles.active=local ``` ### Use SDK #### Java - **Dependency** ```xml fun.freechat freechat-sdk ${freechat-sdk.version} ``` - **Example** ```java import fun.freechat.client.ApiClient; import fun.freechat.client.ApiException; import fun.freechat.client.Configuration; import fun.freechat.client.api.AccountApi; import fun.freechat.client.auth.ApiKeyAuth; import fun.freechat.client.model.UserDetailsDTO; public class AccountClientExample { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); defaultClient.setBasePath(\"https://freechat.fun\"); // Configure HTTP bearer authorization: bearerAuth HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication(\"bearerAuth\"); bearerAuth.setBearerToken(\"FREECHAT_TOKEN\"); AccountApi apiInstance = new AccountApi(defaultClient); try { UserDetailsDTO result = apiInstance.getUserDetails(); System.out.println(result); } catch (ApiException e) { e.printStackTrace(); } } } ``` #### Python - **Installation** ```shell pip install freechat-sdk ``` - **Example** ```python import freechat_sdk from freechat_sdk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://freechat.fun # See configuration.py for a list of all supported configuration parameters. configuration = freechat_sdk.Configuration( host = \"https://freechat.fun\" ) # Configure Bearer authorization: bearerAuth configuration = freechat_sdk.Configuration( access_token = os.environ[\"FREECHAT_TOKEN\"] ) # Enter a context with an instance of the API client with freechat_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = freechat_sdk.AccountApi(api_client) try: details = api_instance.get_user_details() pprint(details) except ApiException as e: print(\"Exception when calling AccountClient->get_user_details: %s\\n\" % e) ``` #### TypeScript - **Installation** ```shell npm install freechat-sdk --save ``` - **Example** Refer to [FreeChatApiContext.tsx](https://github.com/freechat-fun/freechat/blob/main/freechat-web/src/contexts/FreeChatApiProvider.tsx) ## System Dependencies | | Projects | ---- | ---- | Application Framework | [Spring Boot](https://spring.io/projects/spring-boot/) | LLM Framework | [LangChain4j](https://docs.langchain4j.dev/) | Model Providers | [OpenAI](https://platform.openai.com/), [Azure OpenAI](https://oai.azure.com/), [DashScope(Alibaba)](https://dashscope.aliyun.com/) | Database Systems | [MySQL](https://www.mysql.com/), [Redis](https://redis.io/), [Milvus](https://milvus.io/) | Monitoring & Alerting | [Prometheus](https://prometheus.io/), [Grafana](https://grafana.com/) | OpenAPI Tools | [Springdoc-openapi](https://springdoc.org/), [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator), [OpenAPI Explorer](https://github.com/Authress-Engineering/openapi-explorer) ## Collaboration ### Application Integration The FreeChat system is entirely oriented towards Open APIs. The site [freechat.fun](https://freechat.fun) is developed using its TypeScript SDK and hardly depends on private interfaces. You can use these online interfaces to develop your own applications or sites, making them fit your preferences. Currently, FreeChat is completely free with no paid plans (after all, users use their own API Key to call LLM services). ### Model Integration FreeChat aims to explore AI virtual character technology with anthropomorphic characteristics. So far, it supports model services from OpenAI GPT and Alibaba Qwen series models. However, we are more interested in supporting models that are under research and can endow AI with more personality traits. If you are researching this area and hope FreeChat supports your model, please contact us. We look forward to AI technology helping people create their own \"soul mates\" in the future. * * The version of the OpenAPI document: 1.4.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ package fun.freechat.client.api; import fun.freechat.client.ApiCallback; import fun.freechat.client.ApiClient; import fun.freechat.client.ApiException; import fun.freechat.client.ApiResponse; import fun.freechat.client.Configuration; import fun.freechat.client.Pair; import fun.freechat.client.ProgressRequestBody; import fun.freechat.client.ProgressResponseBody; import com.google.gson.reflect.TypeToken; import java.io.IOException; import fun.freechat.client.model.CharacterBackendDTO; import fun.freechat.client.model.CharacterBackendDetailsDTO; import fun.freechat.client.model.CharacterCreateDTO; import fun.freechat.client.model.CharacterDetailsDTO; import fun.freechat.client.model.CharacterItemForNameDTO; import fun.freechat.client.model.CharacterQueryDTO; import fun.freechat.client.model.CharacterSummaryDTO; import fun.freechat.client.model.CharacterUpdateDTO; import java.io.File; import java.lang.reflect.Type; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; public class CharacterApi { private ApiClient localVarApiClient; private int localHostIndex; private String localCustomBaseUrl; public CharacterApi() { this(Configuration.getDefaultApiClient()); } public CharacterApi(ApiClient apiClient) { this.localVarApiClient = apiClient; } public ApiClient getApiClient() { return localVarApiClient; } public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } public int getHostIndex() { return localHostIndex; } public void setHostIndex(int hostIndex) { this.localHostIndex = hostIndex; } public String getCustomBaseUrl() { return localCustomBaseUrl; } public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } /** * Build call for addCharacterBackend * @param characterId The characterId to be added a backend (required) * @param characterBackendDTO The character backend to be added (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call addCharacterBackendCall(Long characterId, CharacterBackendDTO characterBackendDTO, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = characterBackendDTO; // create path and map variables String localVarPath = "/api/v1/character/backend/{characterId}" .replace("{" + "characterId" + "}", localVarApiClient.escapeString(characterId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call addCharacterBackendValidateBeforeCall(Long characterId, CharacterBackendDTO characterBackendDTO, final ApiCallback _callback) throws ApiException { // verify the required parameter 'characterId' is set if (characterId == null) { throw new ApiException("Missing the required parameter 'characterId' when calling addCharacterBackend(Async)"); } // verify the required parameter 'characterBackendDTO' is set if (characterBackendDTO == null) { throw new ApiException("Missing the required parameter 'characterBackendDTO' when calling addCharacterBackend(Async)"); } return addCharacterBackendCall(characterId, characterBackendDTO, _callback); } /** * Add Character Backend * Add a backend configuration for a character. * @param characterId The characterId to be added a backend (required) * @param characterBackendDTO The character backend to be added (required) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public String addCharacterBackend(Long characterId, CharacterBackendDTO characterBackendDTO) throws ApiException { ApiResponse localVarResp = addCharacterBackendWithHttpInfo(characterId, characterBackendDTO); return localVarResp.getData(); } /** * Add Character Backend * Add a backend configuration for a character. * @param characterId The characterId to be added a backend (required) * @param characterBackendDTO The character backend to be added (required) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse addCharacterBackendWithHttpInfo(Long characterId, CharacterBackendDTO characterBackendDTO) throws ApiException { okhttp3.Call localVarCall = addCharacterBackendValidateBeforeCall(characterId, characterBackendDTO, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Add Character Backend (asynchronously) * Add a backend configuration for a character. * @param characterId The characterId to be added a backend (required) * @param characterBackendDTO The character backend to be added (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call addCharacterBackendAsync(Long characterId, CharacterBackendDTO characterBackendDTO, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = addCharacterBackendValidateBeforeCall(characterId, characterBackendDTO, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for batchSearchCharacterDetails * @param characterQueryDTO Query conditions (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call batchSearchCharacterDetailsCall(List characterQueryDTO, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = characterQueryDTO; // create path and map variables String localVarPath = "/api/v1/character/batch/details/search"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call batchSearchCharacterDetailsValidateBeforeCall(List characterQueryDTO, final ApiCallback _callback) throws ApiException { // verify the required parameter 'characterQueryDTO' is set if (characterQueryDTO == null) { throw new ApiException("Missing the required parameter 'characterQueryDTO' when calling batchSearchCharacterDetails(Async)"); } return batchSearchCharacterDetailsCall(characterQueryDTO, _callback); } /** * Batch Search Character Details * Batch call shortcut for /api/v1/character/details/search. * @param characterQueryDTO Query conditions (required) * @return List<List<CharacterDetailsDTO>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public List> batchSearchCharacterDetails(List characterQueryDTO) throws ApiException { ApiResponse>> localVarResp = batchSearchCharacterDetailsWithHttpInfo(characterQueryDTO); return localVarResp.getData(); } /** * Batch Search Character Details * Batch call shortcut for /api/v1/character/details/search. * @param characterQueryDTO Query conditions (required) * @return ApiResponse<List<List<CharacterDetailsDTO>>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse>> batchSearchCharacterDetailsWithHttpInfo(List characterQueryDTO) throws ApiException { okhttp3.Call localVarCall = batchSearchCharacterDetailsValidateBeforeCall(characterQueryDTO, null); Type localVarReturnType = new TypeToken>>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Batch Search Character Details (asynchronously) * Batch call shortcut for /api/v1/character/details/search. * @param characterQueryDTO Query conditions (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call batchSearchCharacterDetailsAsync(List characterQueryDTO, final ApiCallback>> _callback) throws ApiException { okhttp3.Call localVarCall = batchSearchCharacterDetailsValidateBeforeCall(characterQueryDTO, _callback); Type localVarReturnType = new TypeToken>>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for batchSearchCharacterSummary * @param characterQueryDTO Query conditions (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call batchSearchCharacterSummaryCall(List characterQueryDTO, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = characterQueryDTO; // create path and map variables String localVarPath = "/api/v1/character/batch/search"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call batchSearchCharacterSummaryValidateBeforeCall(List characterQueryDTO, final ApiCallback _callback) throws ApiException { // verify the required parameter 'characterQueryDTO' is set if (characterQueryDTO == null) { throw new ApiException("Missing the required parameter 'characterQueryDTO' when calling batchSearchCharacterSummary(Async)"); } return batchSearchCharacterSummaryCall(characterQueryDTO, _callback); } /** * Batch Search Character Summaries * Batch call shortcut for /api/v1/character/search. * @param characterQueryDTO Query conditions (required) * @return List<List<CharacterSummaryDTO>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public List> batchSearchCharacterSummary(List characterQueryDTO) throws ApiException { ApiResponse>> localVarResp = batchSearchCharacterSummaryWithHttpInfo(characterQueryDTO); return localVarResp.getData(); } /** * Batch Search Character Summaries * Batch call shortcut for /api/v1/character/search. * @param characterQueryDTO Query conditions (required) * @return ApiResponse<List<List<CharacterSummaryDTO>>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse>> batchSearchCharacterSummaryWithHttpInfo(List characterQueryDTO) throws ApiException { okhttp3.Call localVarCall = batchSearchCharacterSummaryValidateBeforeCall(characterQueryDTO, null); Type localVarReturnType = new TypeToken>>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Batch Search Character Summaries (asynchronously) * Batch call shortcut for /api/v1/character/search. * @param characterQueryDTO Query conditions (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call batchSearchCharacterSummaryAsync(List characterQueryDTO, final ApiCallback>> _callback) throws ApiException { okhttp3.Call localVarCall = batchSearchCharacterSummaryValidateBeforeCall(characterQueryDTO, _callback); Type localVarReturnType = new TypeToken>>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for cloneCharacter * @param characterId The referenced characterId (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call cloneCharacterCall(Long characterId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/character/clone/{characterId}" .replace("{" + "characterId" + "}", localVarApiClient.escapeString(characterId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call cloneCharacterValidateBeforeCall(Long characterId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'characterId' is set if (characterId == null) { throw new ApiException("Missing the required parameter 'characterId' when calling cloneCharacter(Async)"); } return cloneCharacterCall(characterId, _callback); } /** * Clone Character * Enter the characterId, generate a new record, the content is basically the same as the original character, but the following fields are different: - Version number is 1 - Visibility is private - The parent character is the source characterId - The creation time is the current moment. - All statistical indicators are zeroed. Return the new characterId. * @param characterId The referenced characterId (required) * @return Long * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public Long cloneCharacter(Long characterId) throws ApiException { ApiResponse localVarResp = cloneCharacterWithHttpInfo(characterId); return localVarResp.getData(); } /** * Clone Character * Enter the characterId, generate a new record, the content is basically the same as the original character, but the following fields are different: - Version number is 1 - Visibility is private - The parent character is the source characterId - The creation time is the current moment. - All statistical indicators are zeroed. Return the new characterId. * @param characterId The referenced characterId (required) * @return ApiResponse<Long> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse cloneCharacterWithHttpInfo(Long characterId) throws ApiException { okhttp3.Call localVarCall = cloneCharacterValidateBeforeCall(characterId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Clone Character (asynchronously) * Enter the characterId, generate a new record, the content is basically the same as the original character, but the following fields are different: - Version number is 1 - Visibility is private - The parent character is the source characterId - The creation time is the current moment. - All statistical indicators are zeroed. Return the new characterId. * @param characterId The referenced characterId (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call cloneCharacterAsync(Long characterId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = cloneCharacterValidateBeforeCall(characterId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for countCharacters * @param characterQueryDTO Query conditions (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call countCharactersCall(CharacterQueryDTO characterQueryDTO, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = characterQueryDTO; // create path and map variables String localVarPath = "/api/v1/character/count"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call countCharactersValidateBeforeCall(CharacterQueryDTO characterQueryDTO, final ApiCallback _callback) throws ApiException { // verify the required parameter 'characterQueryDTO' is set if (characterQueryDTO == null) { throw new ApiException("Missing the required parameter 'characterQueryDTO' when calling countCharacters(Async)"); } return countCharactersCall(characterQueryDTO, _callback); } /** * Calculate Number of Characters * Calculate the number of characters according to the specified query conditions. * @param characterQueryDTO Query conditions (required) * @return Long * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public Long countCharacters(CharacterQueryDTO characterQueryDTO) throws ApiException { ApiResponse localVarResp = countCharactersWithHttpInfo(characterQueryDTO); return localVarResp.getData(); } /** * Calculate Number of Characters * Calculate the number of characters according to the specified query conditions. * @param characterQueryDTO Query conditions (required) * @return ApiResponse<Long> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse countCharactersWithHttpInfo(CharacterQueryDTO characterQueryDTO) throws ApiException { okhttp3.Call localVarCall = countCharactersValidateBeforeCall(characterQueryDTO, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Calculate Number of Characters (asynchronously) * Calculate the number of characters according to the specified query conditions. * @param characterQueryDTO Query conditions (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call countCharactersAsync(CharacterQueryDTO characterQueryDTO, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = countCharactersValidateBeforeCall(characterQueryDTO, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for countPublicCharacters * @param characterQueryDTO Query conditions (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call countPublicCharactersCall(CharacterQueryDTO characterQueryDTO, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = characterQueryDTO; // create path and map variables String localVarPath = "/api/v1/public/character/count"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call countPublicCharactersValidateBeforeCall(CharacterQueryDTO characterQueryDTO, final ApiCallback _callback) throws ApiException { // verify the required parameter 'characterQueryDTO' is set if (characterQueryDTO == null) { throw new ApiException("Missing the required parameter 'characterQueryDTO' when calling countPublicCharacters(Async)"); } return countPublicCharactersCall(characterQueryDTO, _callback); } /** * Calculate Number of Public Characters * Calculate the number of characters according to the specified query conditions. * @param characterQueryDTO Query conditions (required) * @return Long * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public Long countPublicCharacters(CharacterQueryDTO characterQueryDTO) throws ApiException { ApiResponse localVarResp = countPublicCharactersWithHttpInfo(characterQueryDTO); return localVarResp.getData(); } /** * Calculate Number of Public Characters * Calculate the number of characters according to the specified query conditions. * @param characterQueryDTO Query conditions (required) * @return ApiResponse<Long> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse countPublicCharactersWithHttpInfo(CharacterQueryDTO characterQueryDTO) throws ApiException { okhttp3.Call localVarCall = countPublicCharactersValidateBeforeCall(characterQueryDTO, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Calculate Number of Public Characters (asynchronously) * Calculate the number of characters according to the specified query conditions. * @param characterQueryDTO Query conditions (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call countPublicCharactersAsync(CharacterQueryDTO characterQueryDTO, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = countPublicCharactersValidateBeforeCall(characterQueryDTO, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for createCharacter * @param characterCreateDTO Information of the character to be created (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call createCharacterCall(CharacterCreateDTO characterCreateDTO, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = characterCreateDTO; // create path and map variables String localVarPath = "/api/v1/character"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createCharacterValidateBeforeCall(CharacterCreateDTO characterCreateDTO, final ApiCallback _callback) throws ApiException { // verify the required parameter 'characterCreateDTO' is set if (characterCreateDTO == null) { throw new ApiException("Missing the required parameter 'characterCreateDTO' when calling createCharacter(Async)"); } return createCharacterCall(characterCreateDTO, _callback); } /** * Create Character * Create a character. * @param characterCreateDTO Information of the character to be created (required) * @return Long * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public Long createCharacter(CharacterCreateDTO characterCreateDTO) throws ApiException { ApiResponse localVarResp = createCharacterWithHttpInfo(characterCreateDTO); return localVarResp.getData(); } /** * Create Character * Create a character. * @param characterCreateDTO Information of the character to be created (required) * @return ApiResponse<Long> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse createCharacterWithHttpInfo(CharacterCreateDTO characterCreateDTO) throws ApiException { okhttp3.Call localVarCall = createCharacterValidateBeforeCall(characterCreateDTO, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Create Character (asynchronously) * Create a character. * @param characterCreateDTO Information of the character to be created (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call createCharacterAsync(CharacterCreateDTO characterCreateDTO, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createCharacterValidateBeforeCall(characterCreateDTO, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for deleteCharacter * @param characterId The characterId to be deleted (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call deleteCharacterCall(Long characterId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/character/{characterId}" .replace("{" + "characterId" + "}", localVarApiClient.escapeString(characterId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCharacterValidateBeforeCall(Long characterId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'characterId' is set if (characterId == null) { throw new ApiException("Missing the required parameter 'characterId' when calling deleteCharacter(Async)"); } return deleteCharacterCall(characterId, _callback); } /** * Delete Character * Delete character. Returns success or failure. * @param characterId The characterId to be deleted (required) * @return Boolean * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public Boolean deleteCharacter(Long characterId) throws ApiException { ApiResponse localVarResp = deleteCharacterWithHttpInfo(characterId); return localVarResp.getData(); } /** * Delete Character * Delete character. Returns success or failure. * @param characterId The characterId to be deleted (required) * @return ApiResponse<Boolean> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse deleteCharacterWithHttpInfo(Long characterId) throws ApiException { okhttp3.Call localVarCall = deleteCharacterValidateBeforeCall(characterId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Delete Character (asynchronously) * Delete character. Returns success or failure. * @param characterId The characterId to be deleted (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call deleteCharacterAsync(Long characterId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCharacterValidateBeforeCall(characterId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for deleteCharacterByName * @param name The character name to be deleted (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call deleteCharacterByNameCall(String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/character/name/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCharacterByNameValidateBeforeCall(String name, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteCharacterByName(Async)"); } return deleteCharacterByNameCall(name, _callback); } /** * Delete Character by Name * Delete character by name. return the list of successfully deleted characterIds. * @param name The character name to be deleted (required) * @return List<Long> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public List deleteCharacterByName(String name) throws ApiException { ApiResponse> localVarResp = deleteCharacterByNameWithHttpInfo(name); return localVarResp.getData(); } /** * Delete Character by Name * Delete character by name. return the list of successfully deleted characterIds. * @param name The character name to be deleted (required) * @return ApiResponse<List<Long>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse> deleteCharacterByNameWithHttpInfo(String name) throws ApiException { okhttp3.Call localVarCall = deleteCharacterByNameValidateBeforeCall(name, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Delete Character by Name (asynchronously) * Delete character by name. return the list of successfully deleted characterIds. * @param name The character name to be deleted (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call deleteCharacterByNameAsync(String name, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = deleteCharacterByNameValidateBeforeCall(name, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for deleteCharacterDocument * @param key Document key (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call deleteCharacterDocumentCall(String key, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/character/document/{key}" .replace("{" + "key" + "}", localVarApiClient.escapeString(key.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCharacterDocumentValidateBeforeCall(String key, final ApiCallback _callback) throws ApiException { // verify the required parameter 'key' is set if (key == null) { throw new ApiException("Missing the required parameter 'key' when calling deleteCharacterDocument(Async)"); } return deleteCharacterDocumentCall(key, _callback); } /** * Delete Character Document * Delete a document of the character by key. * @param key Document key (required) * @return Boolean * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public Boolean deleteCharacterDocument(String key) throws ApiException { ApiResponse localVarResp = deleteCharacterDocumentWithHttpInfo(key); return localVarResp.getData(); } /** * Delete Character Document * Delete a document of the character by key. * @param key Document key (required) * @return ApiResponse<Boolean> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse deleteCharacterDocumentWithHttpInfo(String key) throws ApiException { okhttp3.Call localVarCall = deleteCharacterDocumentValidateBeforeCall(key, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Delete Character Document (asynchronously) * Delete a document of the character by key. * @param key Document key (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call deleteCharacterDocumentAsync(String key, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCharacterDocumentValidateBeforeCall(key, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for deleteCharacterPicture * @param key Image key (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call deleteCharacterPictureCall(String key, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/character/picture/{key}" .replace("{" + "key" + "}", localVarApiClient.escapeString(key.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCharacterPictureValidateBeforeCall(String key, final ApiCallback _callback) throws ApiException { // verify the required parameter 'key' is set if (key == null) { throw new ApiException("Missing the required parameter 'key' when calling deleteCharacterPicture(Async)"); } return deleteCharacterPictureCall(key, _callback); } /** * Delete Character Picture * Delete a picture of the character by key. * @param key Image key (required) * @return Boolean * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public Boolean deleteCharacterPicture(String key) throws ApiException { ApiResponse localVarResp = deleteCharacterPictureWithHttpInfo(key); return localVarResp.getData(); } /** * Delete Character Picture * Delete a picture of the character by key. * @param key Image key (required) * @return ApiResponse<Boolean> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse deleteCharacterPictureWithHttpInfo(String key) throws ApiException { okhttp3.Call localVarCall = deleteCharacterPictureValidateBeforeCall(key, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Delete Character Picture (asynchronously) * Delete a picture of the character by key. * @param key Image key (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call deleteCharacterPictureAsync(String key, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCharacterPictureValidateBeforeCall(key, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for existsCharacterName * @param name Name (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call existsCharacterNameCall(String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/character/exists/name/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call existsCharacterNameValidateBeforeCall(String name, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling existsCharacterName(Async)"); } return existsCharacterNameCall(name, _callback); } /** * Check If Character Name Exists * Check if the character name already exists. * @param name Name (required) * @return Boolean * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public Boolean existsCharacterName(String name) throws ApiException { ApiResponse localVarResp = existsCharacterNameWithHttpInfo(name); return localVarResp.getData(); } /** * Check If Character Name Exists * Check if the character name already exists. * @param name Name (required) * @return ApiResponse<Boolean> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse existsCharacterNameWithHttpInfo(String name) throws ApiException { okhttp3.Call localVarCall = existsCharacterNameValidateBeforeCall(name, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Check If Character Name Exists (asynchronously) * Check if the character name already exists. * @param name Name (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call existsCharacterNameAsync(String name, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = existsCharacterNameValidateBeforeCall(name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for exportCharacter * @param characterId Character identifier (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call exportCharacterCall(Long characterId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/character/export/{characterId}" .replace("{" + "characterId" + "}", localVarApiClient.escapeString(characterId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call exportCharacterValidateBeforeCall(Long characterId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'characterId' is set if (characterId == null) { throw new ApiException("Missing the required parameter 'characterId' when calling exportCharacter(Async)"); } return exportCharacterCall(characterId, _callback); } /** * Export Character Configuration * Export character configuration in tar.gz format, including settings, documents and pictures. * @param characterId Character identifier (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public void exportCharacter(Long characterId) throws ApiException { exportCharacterWithHttpInfo(characterId); } /** * Export Character Configuration * Export character configuration in tar.gz format, including settings, documents and pictures. * @param characterId Character identifier (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse exportCharacterWithHttpInfo(Long characterId) throws ApiException { okhttp3.Call localVarCall = exportCharacterValidateBeforeCall(characterId, null); return localVarApiClient.execute(localVarCall); } /** * Export Character Configuration (asynchronously) * Export character configuration in tar.gz format, including settings, documents and pictures. * @param characterId Character identifier (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call exportCharacterAsync(Long characterId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = exportCharacterValidateBeforeCall(characterId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for getCharacterDetails * @param characterId CharacterId to be obtained (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getCharacterDetailsCall(Long characterId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/character/details/{characterId}" .replace("{" + "characterId" + "}", localVarApiClient.escapeString(characterId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getCharacterDetailsValidateBeforeCall(Long characterId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'characterId' is set if (characterId == null) { throw new ApiException("Missing the required parameter 'characterId' when calling getCharacterDetails(Async)"); } return getCharacterDetailsCall(characterId, _callback); } /** * Get Character Details * Get character detailed information. * @param characterId CharacterId to be obtained (required) * @return CharacterDetailsDTO * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public CharacterDetailsDTO getCharacterDetails(Long characterId) throws ApiException { ApiResponse localVarResp = getCharacterDetailsWithHttpInfo(characterId); return localVarResp.getData(); } /** * Get Character Details * Get character detailed information. * @param characterId CharacterId to be obtained (required) * @return ApiResponse<CharacterDetailsDTO> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse getCharacterDetailsWithHttpInfo(Long characterId) throws ApiException { okhttp3.Call localVarCall = getCharacterDetailsValidateBeforeCall(characterId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get Character Details (asynchronously) * Get character detailed information. * @param characterId CharacterId to be obtained (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getCharacterDetailsAsync(Long characterId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCharacterDetailsValidateBeforeCall(characterId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getCharacterLatestIdByName * @param name Character name (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getCharacterLatestIdByNameCall(String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/character/latest/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getCharacterLatestIdByNameValidateBeforeCall(String name, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling getCharacterLatestIdByName(Async)"); } return getCharacterLatestIdByNameCall(name, _callback); } /** * Get Latest Character Id by Name * Get latest characterId by character name. * @param name Character name (required) * @return Long * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public Long getCharacterLatestIdByName(String name) throws ApiException { ApiResponse localVarResp = getCharacterLatestIdByNameWithHttpInfo(name); return localVarResp.getData(); } /** * Get Latest Character Id by Name * Get latest characterId by character name. * @param name Character name (required) * @return ApiResponse<Long> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse getCharacterLatestIdByNameWithHttpInfo(String name) throws ApiException { okhttp3.Call localVarCall = getCharacterLatestIdByNameValidateBeforeCall(name, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get Latest Character Id by Name (asynchronously) * Get latest characterId by character name. * @param name Character name (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getCharacterLatestIdByNameAsync(String name, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCharacterLatestIdByNameValidateBeforeCall(name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getCharacterSummary * @param characterId CharacterId to be obtained (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getCharacterSummaryCall(Long characterId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/character/summary/{characterId}" .replace("{" + "characterId" + "}", localVarApiClient.escapeString(characterId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getCharacterSummaryValidateBeforeCall(Long characterId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'characterId' is set if (characterId == null) { throw new ApiException("Missing the required parameter 'characterId' when calling getCharacterSummary(Async)"); } return getCharacterSummaryCall(characterId, _callback); } /** * Get Character Summary * Get character summary information. * @param characterId CharacterId to be obtained (required) * @return CharacterSummaryDTO * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public CharacterSummaryDTO getCharacterSummary(Long characterId) throws ApiException { ApiResponse localVarResp = getCharacterSummaryWithHttpInfo(characterId); return localVarResp.getData(); } /** * Get Character Summary * Get character summary information. * @param characterId CharacterId to be obtained (required) * @return ApiResponse<CharacterSummaryDTO> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse getCharacterSummaryWithHttpInfo(Long characterId) throws ApiException { okhttp3.Call localVarCall = getCharacterSummaryValidateBeforeCall(characterId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get Character Summary (asynchronously) * Get character summary information. * @param characterId CharacterId to be obtained (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getCharacterSummaryAsync(Long characterId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCharacterSummaryValidateBeforeCall(characterId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getDefaultCharacterBackend * @param characterId The characterId to be queried (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getDefaultCharacterBackendCall(Long characterId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/character/backend/default/{characterId}" .replace("{" + "characterId" + "}", localVarApiClient.escapeString(characterId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getDefaultCharacterBackendValidateBeforeCall(Long characterId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'characterId' is set if (characterId == null) { throw new ApiException("Missing the required parameter 'characterId' when calling getDefaultCharacterBackend(Async)"); } return getDefaultCharacterBackendCall(characterId, _callback); } /** * Get Default Character Backend * Get the default backend configuration. * @param characterId The characterId to be queried (required) * @return CharacterBackendDetailsDTO * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public CharacterBackendDetailsDTO getDefaultCharacterBackend(Long characterId) throws ApiException { ApiResponse localVarResp = getDefaultCharacterBackendWithHttpInfo(characterId); return localVarResp.getData(); } /** * Get Default Character Backend * Get the default backend configuration. * @param characterId The characterId to be queried (required) * @return ApiResponse<CharacterBackendDetailsDTO> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse getDefaultCharacterBackendWithHttpInfo(Long characterId) throws ApiException { okhttp3.Call localVarCall = getDefaultCharacterBackendValidateBeforeCall(characterId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get Default Character Backend (asynchronously) * Get the default backend configuration. * @param characterId The characterId to be queried (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getDefaultCharacterBackendAsync(Long characterId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getDefaultCharacterBackendValidateBeforeCall(characterId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for importCharacter * @param _file Character avatar (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call importCharacterCall(File _file, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/character/import"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (_file != null) { localVarFormParams.put("file", _file); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "multipart/form-data" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call importCharacterValidateBeforeCall(File _file, final ApiCallback _callback) throws ApiException { // verify the required parameter '_file' is set if (_file == null) { throw new ApiException("Missing the required parameter '_file' when calling importCharacter(Async)"); } return importCharacterCall(_file, _callback); } /** * Import Character Configuration * Import character configuration from a tar.gz file. * @param _file Character avatar (required) * @return Long * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public Long importCharacter(File _file) throws ApiException { ApiResponse localVarResp = importCharacterWithHttpInfo(_file); return localVarResp.getData(); } /** * Import Character Configuration * Import character configuration from a tar.gz file. * @param _file Character avatar (required) * @return ApiResponse<Long> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse importCharacterWithHttpInfo(File _file) throws ApiException { okhttp3.Call localVarCall = importCharacterValidateBeforeCall(_file, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Import Character Configuration (asynchronously) * Import character configuration from a tar.gz file. * @param _file Character avatar (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call importCharacterAsync(File _file, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = importCharacterValidateBeforeCall(_file, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for listCharacterBackendIds * @param characterId The characterId to be queried (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call listCharacterBackendIdsCall(Long characterId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/character/backend/ids/{characterId}" .replace("{" + "characterId" + "}", localVarApiClient.escapeString(characterId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listCharacterBackendIdsValidateBeforeCall(Long characterId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'characterId' is set if (characterId == null) { throw new ApiException("Missing the required parameter 'characterId' when calling listCharacterBackendIds(Async)"); } return listCharacterBackendIdsCall(characterId, _callback); } /** * List Character Backend ids * List character backend identifiers. * @param characterId The characterId to be queried (required) * @return List<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public List listCharacterBackendIds(Long characterId) throws ApiException { ApiResponse> localVarResp = listCharacterBackendIdsWithHttpInfo(characterId); return localVarResp.getData(); } /** * List Character Backend ids * List character backend identifiers. * @param characterId The characterId to be queried (required) * @return ApiResponse<List<String>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse> listCharacterBackendIdsWithHttpInfo(Long characterId) throws ApiException { okhttp3.Call localVarCall = listCharacterBackendIdsValidateBeforeCall(characterId, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List Character Backend ids (asynchronously) * List character backend identifiers. * @param characterId The characterId to be queried (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call listCharacterBackendIdsAsync(Long characterId, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = listCharacterBackendIdsValidateBeforeCall(characterId, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for listCharacterBackends * @param characterId The characterId to be queried (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call listCharacterBackendsCall(Long characterId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/character/backends/{characterId}" .replace("{" + "characterId" + "}", localVarApiClient.escapeString(characterId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listCharacterBackendsValidateBeforeCall(Long characterId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'characterId' is set if (characterId == null) { throw new ApiException("Missing the required parameter 'characterId' when calling listCharacterBackends(Async)"); } return listCharacterBackendsCall(characterId, _callback); } /** * List Character Backends * List character backends. * @param characterId The characterId to be queried (required) * @return List<CharacterBackendDetailsDTO> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public List listCharacterBackends(Long characterId) throws ApiException { ApiResponse> localVarResp = listCharacterBackendsWithHttpInfo(characterId); return localVarResp.getData(); } /** * List Character Backends * List character backends. * @param characterId The characterId to be queried (required) * @return ApiResponse<List<CharacterBackendDetailsDTO>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse> listCharacterBackendsWithHttpInfo(Long characterId) throws ApiException { okhttp3.Call localVarCall = listCharacterBackendsValidateBeforeCall(characterId, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List Character Backends (asynchronously) * List character backends. * @param characterId The characterId to be queried (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call listCharacterBackendsAsync(Long characterId, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = listCharacterBackendsValidateBeforeCall(characterId, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for listCharacterDocuments * @param characterId Character identifier (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call listCharacterDocumentsCall(Long characterId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/character/documents/{characterId}" .replace("{" + "characterId" + "}", localVarApiClient.escapeString(characterId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listCharacterDocumentsValidateBeforeCall(Long characterId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'characterId' is set if (characterId == null) { throw new ApiException("Missing the required parameter 'characterId' when calling listCharacterDocuments(Async)"); } return listCharacterDocumentsCall(characterId, _callback); } /** * List Character Documents * List documents of the character. * @param characterId Character identifier (required) * @return List<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public List listCharacterDocuments(Long characterId) throws ApiException { ApiResponse> localVarResp = listCharacterDocumentsWithHttpInfo(characterId); return localVarResp.getData(); } /** * List Character Documents * List documents of the character. * @param characterId Character identifier (required) * @return ApiResponse<List<String>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse> listCharacterDocumentsWithHttpInfo(Long characterId) throws ApiException { okhttp3.Call localVarCall = listCharacterDocumentsValidateBeforeCall(characterId, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List Character Documents (asynchronously) * List documents of the character. * @param characterId Character identifier (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call listCharacterDocumentsAsync(Long characterId, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = listCharacterDocumentsValidateBeforeCall(characterId, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for listCharacterPictures * @param characterId Character identifier (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call listCharacterPicturesCall(Long characterId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/character/pictures/{characterId}" .replace("{" + "characterId" + "}", localVarApiClient.escapeString(characterId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listCharacterPicturesValidateBeforeCall(Long characterId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'characterId' is set if (characterId == null) { throw new ApiException("Missing the required parameter 'characterId' when calling listCharacterPictures(Async)"); } return listCharacterPicturesCall(characterId, _callback); } /** * List Character Pictures * List pictures of the character. * @param characterId Character identifier (required) * @return List<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public List listCharacterPictures(Long characterId) throws ApiException { ApiResponse> localVarResp = listCharacterPicturesWithHttpInfo(characterId); return localVarResp.getData(); } /** * List Character Pictures * List pictures of the character. * @param characterId Character identifier (required) * @return ApiResponse<List<String>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse> listCharacterPicturesWithHttpInfo(Long characterId) throws ApiException { okhttp3.Call localVarCall = listCharacterPicturesValidateBeforeCall(characterId, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List Character Pictures (asynchronously) * List pictures of the character. * @param characterId Character identifier (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call listCharacterPicturesAsync(Long characterId, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = listCharacterPicturesValidateBeforeCall(characterId, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for listCharacterVersionsByName * @param name Character name (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call listCharacterVersionsByNameCall(String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/character/versions/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listCharacterVersionsByNameValidateBeforeCall(String name, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling listCharacterVersionsByName(Async)"); } return listCharacterVersionsByNameCall(name, _callback); } /** * List Versions by Character Name * List the versions and corresponding characterIds by character name. * @param name Character name (required) * @return List<CharacterItemForNameDTO> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public List listCharacterVersionsByName(String name) throws ApiException { ApiResponse> localVarResp = listCharacterVersionsByNameWithHttpInfo(name); return localVarResp.getData(); } /** * List Versions by Character Name * List the versions and corresponding characterIds by character name. * @param name Character name (required) * @return ApiResponse<List<CharacterItemForNameDTO>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse> listCharacterVersionsByNameWithHttpInfo(String name) throws ApiException { okhttp3.Call localVarCall = listCharacterVersionsByNameValidateBeforeCall(name, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List Versions by Character Name (asynchronously) * List the versions and corresponding characterIds by character name. * @param name Character name (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call listCharacterVersionsByNameAsync(String name, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = listCharacterVersionsByNameValidateBeforeCall(name, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for newCharacterName * @param desired Desired name (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call newCharacterNameCall(String desired, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/character/create/name/{desired}" .replace("{" + "desired" + "}", localVarApiClient.escapeString(desired.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call newCharacterNameValidateBeforeCall(String desired, final ApiCallback _callback) throws ApiException { // verify the required parameter 'desired' is set if (desired == null) { throw new ApiException("Missing the required parameter 'desired' when calling newCharacterName(Async)"); } return newCharacterNameCall(desired, _callback); } /** * Create New Character Name * Create a new character name starting with a desired name. * @param desired Desired name (required) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public String newCharacterName(String desired) throws ApiException { ApiResponse localVarResp = newCharacterNameWithHttpInfo(desired); return localVarResp.getData(); } /** * Create New Character Name * Create a new character name starting with a desired name. * @param desired Desired name (required) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse newCharacterNameWithHttpInfo(String desired) throws ApiException { okhttp3.Call localVarCall = newCharacterNameValidateBeforeCall(desired, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Create New Character Name (asynchronously) * Create a new character name starting with a desired name. * @param desired Desired name (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call newCharacterNameAsync(String desired, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = newCharacterNameValidateBeforeCall(desired, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for publishCharacter * @param characterId The characterId to be published (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call publishCharacterCall(Long characterId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/character/publish/{characterId}" .replace("{" + "characterId" + "}", localVarApiClient.escapeString(characterId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call publishCharacterValidateBeforeCall(Long characterId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'characterId' is set if (characterId == null) { throw new ApiException("Missing the required parameter 'characterId' when calling publishCharacter(Async)"); } return publishCharacterCall(characterId, _callback); } /** * Publish Character * Publish character, draft content becomes formal content, version number increases by 1. After successful publication, a new characterId will be generated and returned. You need to specify the visibility for publication. * @param characterId The characterId to be published (required) * @return Long * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public Long publishCharacter(Long characterId) throws ApiException { ApiResponse localVarResp = publishCharacterWithHttpInfo(characterId); return localVarResp.getData(); } /** * Publish Character * Publish character, draft content becomes formal content, version number increases by 1. After successful publication, a new characterId will be generated and returned. You need to specify the visibility for publication. * @param characterId The characterId to be published (required) * @return ApiResponse<Long> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse publishCharacterWithHttpInfo(Long characterId) throws ApiException { okhttp3.Call localVarCall = publishCharacterValidateBeforeCall(characterId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Publish Character (asynchronously) * Publish character, draft content becomes formal content, version number increases by 1. After successful publication, a new characterId will be generated and returned. You need to specify the visibility for publication. * @param characterId The characterId to be published (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call publishCharacterAsync(Long characterId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = publishCharacterValidateBeforeCall(characterId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for publishCharacter1 * @param characterId The characterId to be published (required) * @param visibility Visibility: public | private | ... (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call publishCharacter1Call(Long characterId, String visibility, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/character/publish/{characterId}/{visibility}" .replace("{" + "characterId" + "}", localVarApiClient.escapeString(characterId.toString())) .replace("{" + "visibility" + "}", localVarApiClient.escapeString(visibility.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call publishCharacter1ValidateBeforeCall(Long characterId, String visibility, final ApiCallback _callback) throws ApiException { // verify the required parameter 'characterId' is set if (characterId == null) { throw new ApiException("Missing the required parameter 'characterId' when calling publishCharacter1(Async)"); } // verify the required parameter 'visibility' is set if (visibility == null) { throw new ApiException("Missing the required parameter 'visibility' when calling publishCharacter1(Async)"); } return publishCharacter1Call(characterId, visibility, _callback); } /** * Publish Character * Publish character, draft content becomes formal content, version number increases by 1. After successful publication, a new characterId will be generated and returned. You need to specify the visibility for publication. * @param characterId The characterId to be published (required) * @param visibility Visibility: public | private | ... (required) * @return Long * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public Long publishCharacter1(Long characterId, String visibility) throws ApiException { ApiResponse localVarResp = publishCharacter1WithHttpInfo(characterId, visibility); return localVarResp.getData(); } /** * Publish Character * Publish character, draft content becomes formal content, version number increases by 1. After successful publication, a new characterId will be generated and returned. You need to specify the visibility for publication. * @param characterId The characterId to be published (required) * @param visibility Visibility: public | private | ... (required) * @return ApiResponse<Long> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse publishCharacter1WithHttpInfo(Long characterId, String visibility) throws ApiException { okhttp3.Call localVarCall = publishCharacter1ValidateBeforeCall(characterId, visibility, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Publish Character (asynchronously) * Publish character, draft content becomes formal content, version number increases by 1. After successful publication, a new characterId will be generated and returned. You need to specify the visibility for publication. * @param characterId The characterId to be published (required) * @param visibility Visibility: public | private | ... (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call publishCharacter1Async(Long characterId, String visibility, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = publishCharacter1ValidateBeforeCall(characterId, visibility, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for removeCharacterBackend * @param characterBackendId The characterBackendId to be removed (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call removeCharacterBackendCall(String characterBackendId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/character/backend/{characterBackendId}" .replace("{" + "characterBackendId" + "}", localVarApiClient.escapeString(characterBackendId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call removeCharacterBackendValidateBeforeCall(String characterBackendId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'characterBackendId' is set if (characterBackendId == null) { throw new ApiException("Missing the required parameter 'characterBackendId' when calling removeCharacterBackend(Async)"); } return removeCharacterBackendCall(characterBackendId, _callback); } /** * Remove Character Backend * Remove a backend configuration. * @param characterBackendId The characterBackendId to be removed (required) * @return Boolean * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public Boolean removeCharacterBackend(String characterBackendId) throws ApiException { ApiResponse localVarResp = removeCharacterBackendWithHttpInfo(characterBackendId); return localVarResp.getData(); } /** * Remove Character Backend * Remove a backend configuration. * @param characterBackendId The characterBackendId to be removed (required) * @return ApiResponse<Boolean> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse removeCharacterBackendWithHttpInfo(String characterBackendId) throws ApiException { okhttp3.Call localVarCall = removeCharacterBackendValidateBeforeCall(characterBackendId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Remove Character Backend (asynchronously) * Remove a backend configuration. * @param characterBackendId The characterBackendId to be removed (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call removeCharacterBackendAsync(String characterBackendId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = removeCharacterBackendValidateBeforeCall(characterBackendId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for searchCharacterDetails * @param characterQueryDTO Query conditions (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call searchCharacterDetailsCall(CharacterQueryDTO characterQueryDTO, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = characterQueryDTO; // create path and map variables String localVarPath = "/api/v1/character/details/search"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call searchCharacterDetailsValidateBeforeCall(CharacterQueryDTO characterQueryDTO, final ApiCallback _callback) throws ApiException { // verify the required parameter 'characterQueryDTO' is set if (characterQueryDTO == null) { throw new ApiException("Missing the required parameter 'characterQueryDTO' when calling searchCharacterDetails(Async)"); } return searchCharacterDetailsCall(characterQueryDTO, _callback); } /** * Search Character Details * Same as /api/v1/character/search, but returns detailed information of the character. * @param characterQueryDTO Query conditions (required) * @return List<CharacterDetailsDTO> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public List searchCharacterDetails(CharacterQueryDTO characterQueryDTO) throws ApiException { ApiResponse> localVarResp = searchCharacterDetailsWithHttpInfo(characterQueryDTO); return localVarResp.getData(); } /** * Search Character Details * Same as /api/v1/character/search, but returns detailed information of the character. * @param characterQueryDTO Query conditions (required) * @return ApiResponse<List<CharacterDetailsDTO>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse> searchCharacterDetailsWithHttpInfo(CharacterQueryDTO characterQueryDTO) throws ApiException { okhttp3.Call localVarCall = searchCharacterDetailsValidateBeforeCall(characterQueryDTO, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Search Character Details (asynchronously) * Same as /api/v1/character/search, but returns detailed information of the character. * @param characterQueryDTO Query conditions (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call searchCharacterDetailsAsync(CharacterQueryDTO characterQueryDTO, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = searchCharacterDetailsValidateBeforeCall(characterQueryDTO, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for searchCharacterSummary * @param characterQueryDTO Query conditions (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call searchCharacterSummaryCall(CharacterQueryDTO characterQueryDTO, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = characterQueryDTO; // create path and map variables String localVarPath = "/api/v1/character/search"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call searchCharacterSummaryValidateBeforeCall(CharacterQueryDTO characterQueryDTO, final ApiCallback _callback) throws ApiException { // verify the required parameter 'characterQueryDTO' is set if (characterQueryDTO == null) { throw new ApiException("Missing the required parameter 'characterQueryDTO' when calling searchCharacterSummary(Async)"); } return searchCharacterSummaryCall(characterQueryDTO, _callback); } /** * Search Character Summary * Search characters: - Specifiable query fields, and relationship: - Scope: private, public_org or public. Private can only search this account. - Username: exact match, only valid when searching public, public_org. If not specified, search all users. - Tags: exact match (support and, or logic). - Name: left match. - Language, exact match. - General: name, description, profile, chat style, experience, fuzzy match, one hit is enough; public scope + all user's general search does not guarantee timeliness. - A certain sorting rule can be specified, such as view count, reference count, rating, time, descending or ascending. - The search result is the character summary content. - Support pagination. * @param characterQueryDTO Query conditions (required) * @return List<CharacterSummaryDTO> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public List searchCharacterSummary(CharacterQueryDTO characterQueryDTO) throws ApiException { ApiResponse> localVarResp = searchCharacterSummaryWithHttpInfo(characterQueryDTO); return localVarResp.getData(); } /** * Search Character Summary * Search characters: - Specifiable query fields, and relationship: - Scope: private, public_org or public. Private can only search this account. - Username: exact match, only valid when searching public, public_org. If not specified, search all users. - Tags: exact match (support and, or logic). - Name: left match. - Language, exact match. - General: name, description, profile, chat style, experience, fuzzy match, one hit is enough; public scope + all user's general search does not guarantee timeliness. - A certain sorting rule can be specified, such as view count, reference count, rating, time, descending or ascending. - The search result is the character summary content. - Support pagination. * @param characterQueryDTO Query conditions (required) * @return ApiResponse<List<CharacterSummaryDTO>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse> searchCharacterSummaryWithHttpInfo(CharacterQueryDTO characterQueryDTO) throws ApiException { okhttp3.Call localVarCall = searchCharacterSummaryValidateBeforeCall(characterQueryDTO, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Search Character Summary (asynchronously) * Search characters: - Specifiable query fields, and relationship: - Scope: private, public_org or public. Private can only search this account. - Username: exact match, only valid when searching public, public_org. If not specified, search all users. - Tags: exact match (support and, or logic). - Name: left match. - Language, exact match. - General: name, description, profile, chat style, experience, fuzzy match, one hit is enough; public scope + all user's general search does not guarantee timeliness. - A certain sorting rule can be specified, such as view count, reference count, rating, time, descending or ascending. - The search result is the character summary content. - Support pagination. * @param characterQueryDTO Query conditions (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call searchCharacterSummaryAsync(CharacterQueryDTO characterQueryDTO, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = searchCharacterSummaryValidateBeforeCall(characterQueryDTO, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for searchPublicCharacterSummary * @param characterQueryDTO Query conditions (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call searchPublicCharacterSummaryCall(CharacterQueryDTO characterQueryDTO, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = characterQueryDTO; // create path and map variables String localVarPath = "/api/v1/public/character/search"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call searchPublicCharacterSummaryValidateBeforeCall(CharacterQueryDTO characterQueryDTO, final ApiCallback _callback) throws ApiException { // verify the required parameter 'characterQueryDTO' is set if (characterQueryDTO == null) { throw new ApiException("Missing the required parameter 'characterQueryDTO' when calling searchPublicCharacterSummary(Async)"); } return searchPublicCharacterSummaryCall(characterQueryDTO, _callback); } /** * Search Public Character Summary * Search characters: - Specifiable query fields, and relationship: - Scope: public(fixed). - Username: exact match. If not specified, search all users. - Tags: exact match (support and, or logic). - Name: left match. - Language, exact match. - General: name, description, profile, chat style, experience, fuzzy match, one hit is enough; public scope + all user's general search does not guarantee timeliness. - A certain sorting rule can be specified, such as view count, reference count, rating, time, descending or ascending. - The search result is the character summary content. - Support pagination. * @param characterQueryDTO Query conditions (required) * @return List<CharacterSummaryDTO> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public List searchPublicCharacterSummary(CharacterQueryDTO characterQueryDTO) throws ApiException { ApiResponse> localVarResp = searchPublicCharacterSummaryWithHttpInfo(characterQueryDTO); return localVarResp.getData(); } /** * Search Public Character Summary * Search characters: - Specifiable query fields, and relationship: - Scope: public(fixed). - Username: exact match. If not specified, search all users. - Tags: exact match (support and, or logic). - Name: left match. - Language, exact match. - General: name, description, profile, chat style, experience, fuzzy match, one hit is enough; public scope + all user's general search does not guarantee timeliness. - A certain sorting rule can be specified, such as view count, reference count, rating, time, descending or ascending. - The search result is the character summary content. - Support pagination. * @param characterQueryDTO Query conditions (required) * @return ApiResponse<List<CharacterSummaryDTO>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse> searchPublicCharacterSummaryWithHttpInfo(CharacterQueryDTO characterQueryDTO) throws ApiException { okhttp3.Call localVarCall = searchPublicCharacterSummaryValidateBeforeCall(characterQueryDTO, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Search Public Character Summary (asynchronously) * Search characters: - Specifiable query fields, and relationship: - Scope: public(fixed). - Username: exact match. If not specified, search all users. - Tags: exact match (support and, or logic). - Name: left match. - Language, exact match. - General: name, description, profile, chat style, experience, fuzzy match, one hit is enough; public scope + all user's general search does not guarantee timeliness. - A certain sorting rule can be specified, such as view count, reference count, rating, time, descending or ascending. - The search result is the character summary content. - Support pagination. * @param characterQueryDTO Query conditions (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call searchPublicCharacterSummaryAsync(CharacterQueryDTO characterQueryDTO, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = searchPublicCharacterSummaryValidateBeforeCall(characterQueryDTO, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for setDefaultCharacterBackend * @param characterBackendId The characterBackendId to be set to default (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call setDefaultCharacterBackendCall(String characterBackendId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/character/backend/default/{characterBackendId}" .replace("{" + "characterBackendId" + "}", localVarApiClient.escapeString(characterBackendId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call setDefaultCharacterBackendValidateBeforeCall(String characterBackendId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'characterBackendId' is set if (characterBackendId == null) { throw new ApiException("Missing the required parameter 'characterBackendId' when calling setDefaultCharacterBackend(Async)"); } return setDefaultCharacterBackendCall(characterBackendId, _callback); } /** * Set Default Character Backend * Set the default backend configuration. * @param characterBackendId The characterBackendId to be set to default (required) * @return Boolean * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public Boolean setDefaultCharacterBackend(String characterBackendId) throws ApiException { ApiResponse localVarResp = setDefaultCharacterBackendWithHttpInfo(characterBackendId); return localVarResp.getData(); } /** * Set Default Character Backend * Set the default backend configuration. * @param characterBackendId The characterBackendId to be set to default (required) * @return ApiResponse<Boolean> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse setDefaultCharacterBackendWithHttpInfo(String characterBackendId) throws ApiException { okhttp3.Call localVarCall = setDefaultCharacterBackendValidateBeforeCall(characterBackendId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Set Default Character Backend (asynchronously) * Set the default backend configuration. * @param characterBackendId The characterBackendId to be set to default (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call setDefaultCharacterBackendAsync(String characterBackendId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = setDefaultCharacterBackendValidateBeforeCall(characterBackendId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for updateCharacter * @param characterId The characterId to be updated (required) * @param characterUpdateDTO The character information to be updated (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call updateCharacterCall(Long characterId, CharacterUpdateDTO characterUpdateDTO, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = characterUpdateDTO; // create path and map variables String localVarPath = "/api/v1/character/{characterId}" .replace("{" + "characterId" + "}", localVarApiClient.escapeString(characterId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call updateCharacterValidateBeforeCall(Long characterId, CharacterUpdateDTO characterUpdateDTO, final ApiCallback _callback) throws ApiException { // verify the required parameter 'characterId' is set if (characterId == null) { throw new ApiException("Missing the required parameter 'characterId' when calling updateCharacter(Async)"); } // verify the required parameter 'characterUpdateDTO' is set if (characterUpdateDTO == null) { throw new ApiException("Missing the required parameter 'characterUpdateDTO' when calling updateCharacter(Async)"); } return updateCharacterCall(characterId, characterUpdateDTO, _callback); } /** * Update Character * Update character, refer to /api/v1/character/create, required field: characterId. Returns success or failure. * @param characterId The characterId to be updated (required) * @param characterUpdateDTO The character information to be updated (required) * @return Boolean * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public Boolean updateCharacter(Long characterId, CharacterUpdateDTO characterUpdateDTO) throws ApiException { ApiResponse localVarResp = updateCharacterWithHttpInfo(characterId, characterUpdateDTO); return localVarResp.getData(); } /** * Update Character * Update character, refer to /api/v1/character/create, required field: characterId. Returns success or failure. * @param characterId The characterId to be updated (required) * @param characterUpdateDTO The character information to be updated (required) * @return ApiResponse<Boolean> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse updateCharacterWithHttpInfo(Long characterId, CharacterUpdateDTO characterUpdateDTO) throws ApiException { okhttp3.Call localVarCall = updateCharacterValidateBeforeCall(characterId, characterUpdateDTO, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Update Character (asynchronously) * Update character, refer to /api/v1/character/create, required field: characterId. Returns success or failure. * @param characterId The characterId to be updated (required) * @param characterUpdateDTO The character information to be updated (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call updateCharacterAsync(Long characterId, CharacterUpdateDTO characterUpdateDTO, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateCharacterValidateBeforeCall(characterId, characterUpdateDTO, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for updateCharacterBackend * @param characterBackendId The characterBackendId to be updated (required) * @param characterBackendDTO The character backend configuration to be updated (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call updateCharacterBackendCall(String characterBackendId, CharacterBackendDTO characterBackendDTO, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = characterBackendDTO; // create path and map variables String localVarPath = "/api/v1/character/backend/{characterBackendId}" .replace("{" + "characterBackendId" + "}", localVarApiClient.escapeString(characterBackendId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call updateCharacterBackendValidateBeforeCall(String characterBackendId, CharacterBackendDTO characterBackendDTO, final ApiCallback _callback) throws ApiException { // verify the required parameter 'characterBackendId' is set if (characterBackendId == null) { throw new ApiException("Missing the required parameter 'characterBackendId' when calling updateCharacterBackend(Async)"); } // verify the required parameter 'characterBackendDTO' is set if (characterBackendDTO == null) { throw new ApiException("Missing the required parameter 'characterBackendDTO' when calling updateCharacterBackend(Async)"); } return updateCharacterBackendCall(characterBackendId, characterBackendDTO, _callback); } /** * Update Character Backend * Update a backend configuration. * @param characterBackendId The characterBackendId to be updated (required) * @param characterBackendDTO The character backend configuration to be updated (required) * @return Boolean * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public Boolean updateCharacterBackend(String characterBackendId, CharacterBackendDTO characterBackendDTO) throws ApiException { ApiResponse localVarResp = updateCharacterBackendWithHttpInfo(characterBackendId, characterBackendDTO); return localVarResp.getData(); } /** * Update Character Backend * Update a backend configuration. * @param characterBackendId The characterBackendId to be updated (required) * @param characterBackendDTO The character backend configuration to be updated (required) * @return ApiResponse<Boolean> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse updateCharacterBackendWithHttpInfo(String characterBackendId, CharacterBackendDTO characterBackendDTO) throws ApiException { okhttp3.Call localVarCall = updateCharacterBackendValidateBeforeCall(characterBackendId, characterBackendDTO, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Update Character Backend (asynchronously) * Update a backend configuration. * @param characterBackendId The characterBackendId to be updated (required) * @param characterBackendDTO The character backend configuration to be updated (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call updateCharacterBackendAsync(String characterBackendId, CharacterBackendDTO characterBackendDTO, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateCharacterBackendValidateBeforeCall(characterBackendId, characterBackendDTO, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for uploadCharacterAvatar * @param characterId Character identifier (required) * @param _file Character avatar (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call uploadCharacterAvatarCall(Long characterId, File _file, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/character/avatar/{characterId}" .replace("{" + "characterId" + "}", localVarApiClient.escapeString(characterId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (_file != null) { localVarFormParams.put("file", _file); } final String[] localVarAccepts = { "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "multipart/form-data" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call uploadCharacterAvatarValidateBeforeCall(Long characterId, File _file, final ApiCallback _callback) throws ApiException { // verify the required parameter 'characterId' is set if (characterId == null) { throw new ApiException("Missing the required parameter 'characterId' when calling uploadCharacterAvatar(Async)"); } // verify the required parameter '_file' is set if (_file == null) { throw new ApiException("Missing the required parameter '_file' when calling uploadCharacterAvatar(Async)"); } return uploadCharacterAvatarCall(characterId, _file, _callback); } /** * Upload Character Avatar * Upload an avatar of the character. * @param characterId Character identifier (required) * @param _file Character avatar (required) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public String uploadCharacterAvatar(Long characterId, File _file) throws ApiException { ApiResponse localVarResp = uploadCharacterAvatarWithHttpInfo(characterId, _file); return localVarResp.getData(); } /** * Upload Character Avatar * Upload an avatar of the character. * @param characterId Character identifier (required) * @param _file Character avatar (required) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse uploadCharacterAvatarWithHttpInfo(Long characterId, File _file) throws ApiException { okhttp3.Call localVarCall = uploadCharacterAvatarValidateBeforeCall(characterId, _file, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Upload Character Avatar (asynchronously) * Upload an avatar of the character. * @param characterId Character identifier (required) * @param _file Character avatar (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call uploadCharacterAvatarAsync(Long characterId, File _file, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = uploadCharacterAvatarValidateBeforeCall(characterId, _file, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for uploadCharacterDocument * @param characterId Character identifier (required) * @param _file Character document (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call uploadCharacterDocumentCall(Long characterId, File _file, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/character/document/{characterId}" .replace("{" + "characterId" + "}", localVarApiClient.escapeString(characterId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (_file != null) { localVarFormParams.put("file", _file); } final String[] localVarAccepts = { "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "multipart/form-data" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call uploadCharacterDocumentValidateBeforeCall(Long characterId, File _file, final ApiCallback _callback) throws ApiException { // verify the required parameter 'characterId' is set if (characterId == null) { throw new ApiException("Missing the required parameter 'characterId' when calling uploadCharacterDocument(Async)"); } // verify the required parameter '_file' is set if (_file == null) { throw new ApiException("Missing the required parameter '_file' when calling uploadCharacterDocument(Async)"); } return uploadCharacterDocumentCall(characterId, _file, _callback); } /** * Upload Character Document * Upload a document of the character. * @param characterId Character identifier (required) * @param _file Character document (required) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public String uploadCharacterDocument(Long characterId, File _file) throws ApiException { ApiResponse localVarResp = uploadCharacterDocumentWithHttpInfo(characterId, _file); return localVarResp.getData(); } /** * Upload Character Document * Upload a document of the character. * @param characterId Character identifier (required) * @param _file Character document (required) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse uploadCharacterDocumentWithHttpInfo(Long characterId, File _file) throws ApiException { okhttp3.Call localVarCall = uploadCharacterDocumentValidateBeforeCall(characterId, _file, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Upload Character Document (asynchronously) * Upload a document of the character. * @param characterId Character identifier (required) * @param _file Character document (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call uploadCharacterDocumentAsync(Long characterId, File _file, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = uploadCharacterDocumentValidateBeforeCall(characterId, _file, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for uploadCharacterPicture * @param characterId Character identifier (required) * @param _file Character picture (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call uploadCharacterPictureCall(Long characterId, File _file, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/character/picture/{characterId}" .replace("{" + "characterId" + "}", localVarApiClient.escapeString(characterId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (_file != null) { localVarFormParams.put("file", _file); } final String[] localVarAccepts = { "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "multipart/form-data" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call uploadCharacterPictureValidateBeforeCall(Long characterId, File _file, final ApiCallback _callback) throws ApiException { // verify the required parameter 'characterId' is set if (characterId == null) { throw new ApiException("Missing the required parameter 'characterId' when calling uploadCharacterPicture(Async)"); } // verify the required parameter '_file' is set if (_file == null) { throw new ApiException("Missing the required parameter '_file' when calling uploadCharacterPicture(Async)"); } return uploadCharacterPictureCall(characterId, _file, _callback); } /** * Upload Character Picture * Upload a picture of the character. * @param characterId Character identifier (required) * @param _file Character picture (required) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public String uploadCharacterPicture(Long characterId, File _file) throws ApiException { ApiResponse localVarResp = uploadCharacterPictureWithHttpInfo(characterId, _file); return localVarResp.getData(); } /** * Upload Character Picture * Upload a picture of the character. * @param characterId Character identifier (required) * @param _file Character picture (required) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse uploadCharacterPictureWithHttpInfo(Long characterId, File _file) throws ApiException { okhttp3.Call localVarCall = uploadCharacterPictureValidateBeforeCall(characterId, _file, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Upload Character Picture (asynchronously) * Upload a picture of the character. * @param characterId Character identifier (required) * @param _file Character picture (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call uploadCharacterPictureAsync(Long characterId, File _file, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = uploadCharacterPictureValidateBeforeCall(characterId, _file, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy