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

io.nem.symbol.sdk.openapi.okhttp_gson.api.MetadataRoutesApi Maven / Gradle / Ivy

There is a newer version: 1.0.3
Show newest version
/*
 * Catapult REST Endpoints
 * OpenAPI Specification of catapult-rest 1.1.2
 *
 * The version of the OpenAPI document: 0.9.4
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package io.nem.symbol.sdk.openapi.okhttp_gson.api;

import io.nem.symbol.sdk.openapi.okhttp_gson.invoker.ApiCallback;
import io.nem.symbol.sdk.openapi.okhttp_gson.invoker.ApiClient;
import io.nem.symbol.sdk.openapi.okhttp_gson.invoker.ApiException;
import io.nem.symbol.sdk.openapi.okhttp_gson.invoker.ApiResponse;
import io.nem.symbol.sdk.openapi.okhttp_gson.invoker.Configuration;
import io.nem.symbol.sdk.openapi.okhttp_gson.invoker.Pair;
import io.nem.symbol.sdk.openapi.okhttp_gson.invoker.ProgressRequestBody;
import io.nem.symbol.sdk.openapi.okhttp_gson.invoker.ProgressResponseBody;

import com.google.gson.reflect.TypeToken;

import java.io.IOException;


import io.nem.symbol.sdk.openapi.okhttp_gson.model.MetadataDTO;
import io.nem.symbol.sdk.openapi.okhttp_gson.model.MetadataEntriesDTO;
import io.nem.symbol.sdk.openapi.okhttp_gson.model.ModelError;
import io.nem.symbol.sdk.openapi.okhttp_gson.model.Order;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class MetadataRoutesApi {
    private ApiClient localVarApiClient;

    public MetadataRoutesApi() {
        this(Configuration.getDefaultApiClient());
    }

    public MetadataRoutesApi(ApiClient apiClient) {
        this.localVarApiClient = apiClient;
    }

    public ApiClient getApiClient() {
        return localVarApiClient;
    }

    public void setApiClient(ApiClient apiClient) {
        this.localVarApiClient = apiClient;
    }

    /**
     * Build call for getAccountMetadata
     * @param address Account address. (required)
     * @param pageSize Select the number of entries to return. (optional, default to 10)
     * @param order Sort responses in ascending or descending order based on the collection property set on the param ``orderBy``. If the request does not specify ``orderBy``, REST returns the collection ordered by id.  (optional, default to desc)
     * @param id Entry id at which to start pagination. If the ordering parameter is set to -id, the elements returned precede the identifier. Otherwise, newer elements with respect to the id are returned.  (optional)
     * @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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public okhttp3.Call getAccountMetadataCall(String address, Integer pageSize, Order order, String id, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/metadata/account/{address}" .replaceAll("\\{" + "address" + "\\}", localVarApiClient.escapeString(address.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (pageSize != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); } if (order != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("order", order)); } if (id != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("id", id)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAccountMetadataValidateBeforeCall(String address, Integer pageSize, Order order, String id, final ApiCallback _callback) throws ApiException { // verify the required parameter 'address' is set if (address == null) { throw new ApiException("Missing the required parameter 'address' when calling getAccountMetadata(Async)"); } okhttp3.Call localVarCall = getAccountMetadataCall(address, pageSize, order, id, _callback); return localVarCall; } /** * Get account metadata * Returns the account metadata given an account id. * @param address Account address. (required) * @param pageSize Select the number of entries to return. (optional, default to 10) * @param order Sort responses in ascending or descending order based on the collection property set on the param ``orderBy``. If the request does not specify ``orderBy``, REST returns the collection ordered by id. (optional, default to desc) * @param id Entry id at which to start pagination. If the ordering parameter is set to -id, the elements returned precede the identifier. Otherwise, newer elements with respect to the id are returned. (optional) * @return MetadataEntriesDTO * @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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public MetadataEntriesDTO getAccountMetadata(String address, Integer pageSize, Order order, String id) throws ApiException { ApiResponse localVarResp = getAccountMetadataWithHttpInfo(address, pageSize, order, id); return localVarResp.getData(); } /** * Get account metadata * Returns the account metadata given an account id. * @param address Account address. (required) * @param pageSize Select the number of entries to return. (optional, default to 10) * @param order Sort responses in ascending or descending order based on the collection property set on the param ``orderBy``. If the request does not specify ``orderBy``, REST returns the collection ordered by id. (optional, default to desc) * @param id Entry id at which to start pagination. If the ordering parameter is set to -id, the elements returned precede the identifier. Otherwise, newer elements with respect to the id are returned. (optional) * @return ApiResponse<MetadataEntriesDTO> * @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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public ApiResponse getAccountMetadataWithHttpInfo(String address, Integer pageSize, Order order, String id) throws ApiException { okhttp3.Call localVarCall = getAccountMetadataValidateBeforeCall(address, pageSize, order, id, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get account metadata (asynchronously) * Returns the account metadata given an account id. * @param address Account address. (required) * @param pageSize Select the number of entries to return. (optional, default to 10) * @param order Sort responses in ascending or descending order based on the collection property set on the param ``orderBy``. If the request does not specify ``orderBy``, REST returns the collection ordered by id. (optional, default to desc) * @param id Entry id at which to start pagination. If the ordering parameter is set to -id, the elements returned precede the identifier. Otherwise, newer elements with respect to the id are returned. (optional) * @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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public okhttp3.Call getAccountMetadataAsync(String address, Integer pageSize, Order order, String id, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAccountMetadataValidateBeforeCall(address, pageSize, order, id, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getAccountMetadataByKey * @param address Account address. (required) * @param key Metadata 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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public okhttp3.Call getAccountMetadataByKeyCall(String address, String key, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/metadata/account/{address}/key/{key}" .replaceAll("\\{" + "address" + "\\}", localVarApiClient.escapeString(address.toString())) .replaceAll("\\{" + "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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAccountMetadataByKeyValidateBeforeCall(String address, String key, final ApiCallback _callback) throws ApiException { // verify the required parameter 'address' is set if (address == null) { throw new ApiException("Missing the required parameter 'address' when calling getAccountMetadataByKey(Async)"); } // verify the required parameter 'key' is set if (key == null) { throw new ApiException("Missing the required parameter 'key' when calling getAccountMetadataByKey(Async)"); } okhttp3.Call localVarCall = getAccountMetadataByKeyCall(address, key, _callback); return localVarCall; } /** * Get account metadata * Returns the account metadata given an account id and a key. * @param address Account address. (required) * @param key Metadata key. (required) * @return MetadataEntriesDTO * @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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public MetadataEntriesDTO getAccountMetadataByKey(String address, String key) throws ApiException { ApiResponse localVarResp = getAccountMetadataByKeyWithHttpInfo(address, key); return localVarResp.getData(); } /** * Get account metadata * Returns the account metadata given an account id and a key. * @param address Account address. (required) * @param key Metadata key. (required) * @return ApiResponse<MetadataEntriesDTO> * @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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public ApiResponse getAccountMetadataByKeyWithHttpInfo(String address, String key) throws ApiException { okhttp3.Call localVarCall = getAccountMetadataByKeyValidateBeforeCall(address, key, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get account metadata (asynchronously) * Returns the account metadata given an account id and a key. * @param address Account address. (required) * @param key Metadata 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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public okhttp3.Call getAccountMetadataByKeyAsync(String address, String key, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAccountMetadataByKeyValidateBeforeCall(address, key, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getAccountMetadataByKeyAndSender * @param address Account address. (required) * @param key Metadata key. (required) * @param sourceAddress Account address. (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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public okhttp3.Call getAccountMetadataByKeyAndSenderCall(String address, String key, String sourceAddress, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/metadata/account/{address}/key/{key}/sender/{sourceAddress}" .replaceAll("\\{" + "address" + "\\}", localVarApiClient.escapeString(address.toString())) .replaceAll("\\{" + "key" + "\\}", localVarApiClient.escapeString(key.toString())) .replaceAll("\\{" + "sourceAddress" + "\\}", localVarApiClient.escapeString(sourceAddress.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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAccountMetadataByKeyAndSenderValidateBeforeCall(String address, String key, String sourceAddress, final ApiCallback _callback) throws ApiException { // verify the required parameter 'address' is set if (address == null) { throw new ApiException("Missing the required parameter 'address' when calling getAccountMetadataByKeyAndSender(Async)"); } // verify the required parameter 'key' is set if (key == null) { throw new ApiException("Missing the required parameter 'key' when calling getAccountMetadataByKeyAndSender(Async)"); } // verify the required parameter 'sourceAddress' is set if (sourceAddress == null) { throw new ApiException("Missing the required parameter 'sourceAddress' when calling getAccountMetadataByKeyAndSender(Async)"); } okhttp3.Call localVarCall = getAccountMetadataByKeyAndSenderCall(address, key, sourceAddress, _callback); return localVarCall; } /** * Get account metadata * Returns the account metadata given an account id, a key, and a sender. * @param address Account address. (required) * @param key Metadata key. (required) * @param sourceAddress Account address. (required) * @return MetadataDTO * @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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public MetadataDTO getAccountMetadataByKeyAndSender(String address, String key, String sourceAddress) throws ApiException { ApiResponse localVarResp = getAccountMetadataByKeyAndSenderWithHttpInfo(address, key, sourceAddress); return localVarResp.getData(); } /** * Get account metadata * Returns the account metadata given an account id, a key, and a sender. * @param address Account address. (required) * @param key Metadata key. (required) * @param sourceAddress Account address. (required) * @return ApiResponse<MetadataDTO> * @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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public ApiResponse getAccountMetadataByKeyAndSenderWithHttpInfo(String address, String key, String sourceAddress) throws ApiException { okhttp3.Call localVarCall = getAccountMetadataByKeyAndSenderValidateBeforeCall(address, key, sourceAddress, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get account metadata (asynchronously) * Returns the account metadata given an account id, a key, and a sender. * @param address Account address. (required) * @param key Metadata key. (required) * @param sourceAddress Account address. (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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public okhttp3.Call getAccountMetadataByKeyAndSenderAsync(String address, String key, String sourceAddress, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAccountMetadataByKeyAndSenderValidateBeforeCall(address, key, sourceAddress, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getMosaicMetadata * @param mosaicId Mosaic identifier. (required) * @param pageSize Select the number of entries to return. (optional, default to 10) * @param id Entry id at which to start pagination. If the ordering parameter is set to -id, the elements returned precede the identifier. Otherwise, newer elements with respect to the id are returned. (optional) * @param order Sort responses in ascending or descending order based on the collection property set on the param ``orderBy``. If the request does not specify ``orderBy``, REST returns the collection ordered by id. (optional, default to desc) * @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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public okhttp3.Call getMosaicMetadataCall(String mosaicId, Integer pageSize, String id, Order order, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/metadata/mosaic/{mosaicId}" .replaceAll("\\{" + "mosaicId" + "\\}", localVarApiClient.escapeString(mosaicId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (pageSize != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); } if (id != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("id", id)); } if (order != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("order", order)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getMosaicMetadataValidateBeforeCall(String mosaicId, Integer pageSize, String id, Order order, final ApiCallback _callback) throws ApiException { // verify the required parameter 'mosaicId' is set if (mosaicId == null) { throw new ApiException("Missing the required parameter 'mosaicId' when calling getMosaicMetadata(Async)"); } okhttp3.Call localVarCall = getMosaicMetadataCall(mosaicId, pageSize, id, order, _callback); return localVarCall; } /** * Get mosaic metadata * Returns the mosaic metadata given a mosaic id. * @param mosaicId Mosaic identifier. (required) * @param pageSize Select the number of entries to return. (optional, default to 10) * @param id Entry id at which to start pagination. If the ordering parameter is set to -id, the elements returned precede the identifier. Otherwise, newer elements with respect to the id are returned. (optional) * @param order Sort responses in ascending or descending order based on the collection property set on the param ``orderBy``. If the request does not specify ``orderBy``, REST returns the collection ordered by id. (optional, default to desc) * @return MetadataEntriesDTO * @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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public MetadataEntriesDTO getMosaicMetadata(String mosaicId, Integer pageSize, String id, Order order) throws ApiException { ApiResponse localVarResp = getMosaicMetadataWithHttpInfo(mosaicId, pageSize, id, order); return localVarResp.getData(); } /** * Get mosaic metadata * Returns the mosaic metadata given a mosaic id. * @param mosaicId Mosaic identifier. (required) * @param pageSize Select the number of entries to return. (optional, default to 10) * @param id Entry id at which to start pagination. If the ordering parameter is set to -id, the elements returned precede the identifier. Otherwise, newer elements with respect to the id are returned. (optional) * @param order Sort responses in ascending or descending order based on the collection property set on the param ``orderBy``. If the request does not specify ``orderBy``, REST returns the collection ordered by id. (optional, default to desc) * @return ApiResponse<MetadataEntriesDTO> * @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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public ApiResponse getMosaicMetadataWithHttpInfo(String mosaicId, Integer pageSize, String id, Order order) throws ApiException { okhttp3.Call localVarCall = getMosaicMetadataValidateBeforeCall(mosaicId, pageSize, id, order, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get mosaic metadata (asynchronously) * Returns the mosaic metadata given a mosaic id. * @param mosaicId Mosaic identifier. (required) * @param pageSize Select the number of entries to return. (optional, default to 10) * @param id Entry id at which to start pagination. If the ordering parameter is set to -id, the elements returned precede the identifier. Otherwise, newer elements with respect to the id are returned. (optional) * @param order Sort responses in ascending or descending order based on the collection property set on the param ``orderBy``. If the request does not specify ``orderBy``, REST returns the collection ordered by id. (optional, default to desc) * @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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public okhttp3.Call getMosaicMetadataAsync(String mosaicId, Integer pageSize, String id, Order order, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getMosaicMetadataValidateBeforeCall(mosaicId, pageSize, id, order, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getMosaicMetadataByKey * @param mosaicId Mosaic identifier. (required) * @param key Metadata 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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public okhttp3.Call getMosaicMetadataByKeyCall(String mosaicId, String key, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/metadata/mosaic/{mosaicId}/key/{key}" .replaceAll("\\{" + "mosaicId" + "\\}", localVarApiClient.escapeString(mosaicId.toString())) .replaceAll("\\{" + "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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getMosaicMetadataByKeyValidateBeforeCall(String mosaicId, String key, final ApiCallback _callback) throws ApiException { // verify the required parameter 'mosaicId' is set if (mosaicId == null) { throw new ApiException("Missing the required parameter 'mosaicId' when calling getMosaicMetadataByKey(Async)"); } // verify the required parameter 'key' is set if (key == null) { throw new ApiException("Missing the required parameter 'key' when calling getMosaicMetadataByKey(Async)"); } okhttp3.Call localVarCall = getMosaicMetadataByKeyCall(mosaicId, key, _callback); return localVarCall; } /** * Get mosaic metadata * Returns the mosaic metadata given a mosaic id and a key. * @param mosaicId Mosaic identifier. (required) * @param key Metadata key. (required) * @return MetadataEntriesDTO * @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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public MetadataEntriesDTO getMosaicMetadataByKey(String mosaicId, String key) throws ApiException { ApiResponse localVarResp = getMosaicMetadataByKeyWithHttpInfo(mosaicId, key); return localVarResp.getData(); } /** * Get mosaic metadata * Returns the mosaic metadata given a mosaic id and a key. * @param mosaicId Mosaic identifier. (required) * @param key Metadata key. (required) * @return ApiResponse<MetadataEntriesDTO> * @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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public ApiResponse getMosaicMetadataByKeyWithHttpInfo(String mosaicId, String key) throws ApiException { okhttp3.Call localVarCall = getMosaicMetadataByKeyValidateBeforeCall(mosaicId, key, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get mosaic metadata (asynchronously) * Returns the mosaic metadata given a mosaic id and a key. * @param mosaicId Mosaic identifier. (required) * @param key Metadata 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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public okhttp3.Call getMosaicMetadataByKeyAsync(String mosaicId, String key, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getMosaicMetadataByKeyValidateBeforeCall(mosaicId, key, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getMosaicMetadataByKeyAndSender * @param mosaicId Mosaic identifier. (required) * @param key Metadata key. (required) * @param sourceAddress Account address. (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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public okhttp3.Call getMosaicMetadataByKeyAndSenderCall(String mosaicId, String key, String sourceAddress, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/metadata/mosaic/{mosaicId}/key/{key}/sender/{sourceAddress}" .replaceAll("\\{" + "mosaicId" + "\\}", localVarApiClient.escapeString(mosaicId.toString())) .replaceAll("\\{" + "key" + "\\}", localVarApiClient.escapeString(key.toString())) .replaceAll("\\{" + "sourceAddress" + "\\}", localVarApiClient.escapeString(sourceAddress.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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getMosaicMetadataByKeyAndSenderValidateBeforeCall(String mosaicId, String key, String sourceAddress, final ApiCallback _callback) throws ApiException { // verify the required parameter 'mosaicId' is set if (mosaicId == null) { throw new ApiException("Missing the required parameter 'mosaicId' when calling getMosaicMetadataByKeyAndSender(Async)"); } // verify the required parameter 'key' is set if (key == null) { throw new ApiException("Missing the required parameter 'key' when calling getMosaicMetadataByKeyAndSender(Async)"); } // verify the required parameter 'sourceAddress' is set if (sourceAddress == null) { throw new ApiException("Missing the required parameter 'sourceAddress' when calling getMosaicMetadataByKeyAndSender(Async)"); } okhttp3.Call localVarCall = getMosaicMetadataByKeyAndSenderCall(mosaicId, key, sourceAddress, _callback); return localVarCall; } /** * Get mosaic metadata * Returns the mosaic metadata given a mosaic id, a key, and a sender. * @param mosaicId Mosaic identifier. (required) * @param key Metadata key. (required) * @param sourceAddress Account address. (required) * @return MetadataDTO * @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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public MetadataDTO getMosaicMetadataByKeyAndSender(String mosaicId, String key, String sourceAddress) throws ApiException { ApiResponse localVarResp = getMosaicMetadataByKeyAndSenderWithHttpInfo(mosaicId, key, sourceAddress); return localVarResp.getData(); } /** * Get mosaic metadata * Returns the mosaic metadata given a mosaic id, a key, and a sender. * @param mosaicId Mosaic identifier. (required) * @param key Metadata key. (required) * @param sourceAddress Account address. (required) * @return ApiResponse<MetadataDTO> * @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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public ApiResponse getMosaicMetadataByKeyAndSenderWithHttpInfo(String mosaicId, String key, String sourceAddress) throws ApiException { okhttp3.Call localVarCall = getMosaicMetadataByKeyAndSenderValidateBeforeCall(mosaicId, key, sourceAddress, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get mosaic metadata (asynchronously) * Returns the mosaic metadata given a mosaic id, a key, and a sender. * @param mosaicId Mosaic identifier. (required) * @param key Metadata key. (required) * @param sourceAddress Account address. (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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public okhttp3.Call getMosaicMetadataByKeyAndSenderAsync(String mosaicId, String key, String sourceAddress, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getMosaicMetadataByKeyAndSenderValidateBeforeCall(mosaicId, key, sourceAddress, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getNamespaceMetadata * @param namespaceId Namespace identifier. (required) * @param pageSize Select the number of entries to return. (optional, default to 10) * @param id Entry id at which to start pagination. If the ordering parameter is set to -id, the elements returned precede the identifier. Otherwise, newer elements with respect to the id are returned. (optional) * @param order Sort responses in ascending or descending order based on the collection property set on the param ``orderBy``. If the request does not specify ``orderBy``, REST returns the collection ordered by id. (optional, default to desc) * @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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public okhttp3.Call getNamespaceMetadataCall(String namespaceId, Integer pageSize, String id, Order order, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/metadata/namespace/{namespaceId}" .replaceAll("\\{" + "namespaceId" + "\\}", localVarApiClient.escapeString(namespaceId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (pageSize != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); } if (id != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("id", id)); } if (order != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("order", order)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getNamespaceMetadataValidateBeforeCall(String namespaceId, Integer pageSize, String id, Order order, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespaceId' is set if (namespaceId == null) { throw new ApiException("Missing the required parameter 'namespaceId' when calling getNamespaceMetadata(Async)"); } okhttp3.Call localVarCall = getNamespaceMetadataCall(namespaceId, pageSize, id, order, _callback); return localVarCall; } /** * Get namespace metadata * Returns the namespace metadata given a namespace id. * @param namespaceId Namespace identifier. (required) * @param pageSize Select the number of entries to return. (optional, default to 10) * @param id Entry id at which to start pagination. If the ordering parameter is set to -id, the elements returned precede the identifier. Otherwise, newer elements with respect to the id are returned. (optional) * @param order Sort responses in ascending or descending order based on the collection property set on the param ``orderBy``. If the request does not specify ``orderBy``, REST returns the collection ordered by id. (optional, default to desc) * @return MetadataEntriesDTO * @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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public MetadataEntriesDTO getNamespaceMetadata(String namespaceId, Integer pageSize, String id, Order order) throws ApiException { ApiResponse localVarResp = getNamespaceMetadataWithHttpInfo(namespaceId, pageSize, id, order); return localVarResp.getData(); } /** * Get namespace metadata * Returns the namespace metadata given a namespace id. * @param namespaceId Namespace identifier. (required) * @param pageSize Select the number of entries to return. (optional, default to 10) * @param id Entry id at which to start pagination. If the ordering parameter is set to -id, the elements returned precede the identifier. Otherwise, newer elements with respect to the id are returned. (optional) * @param order Sort responses in ascending or descending order based on the collection property set on the param ``orderBy``. If the request does not specify ``orderBy``, REST returns the collection ordered by id. (optional, default to desc) * @return ApiResponse<MetadataEntriesDTO> * @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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public ApiResponse getNamespaceMetadataWithHttpInfo(String namespaceId, Integer pageSize, String id, Order order) throws ApiException { okhttp3.Call localVarCall = getNamespaceMetadataValidateBeforeCall(namespaceId, pageSize, id, order, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get namespace metadata (asynchronously) * Returns the namespace metadata given a namespace id. * @param namespaceId Namespace identifier. (required) * @param pageSize Select the number of entries to return. (optional, default to 10) * @param id Entry id at which to start pagination. If the ordering parameter is set to -id, the elements returned precede the identifier. Otherwise, newer elements with respect to the id are returned. (optional) * @param order Sort responses in ascending or descending order based on the collection property set on the param ``orderBy``. If the request does not specify ``orderBy``, REST returns the collection ordered by id. (optional, default to desc) * @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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public okhttp3.Call getNamespaceMetadataAsync(String namespaceId, Integer pageSize, String id, Order order, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getNamespaceMetadataValidateBeforeCall(namespaceId, pageSize, id, order, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getNamespaceMetadataByKey * @param namespaceId Namespace identifier. (required) * @param key Metadata 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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public okhttp3.Call getNamespaceMetadataByKeyCall(String namespaceId, String key, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/metadata/namespace/{namespaceId}/key/{key}" .replaceAll("\\{" + "namespaceId" + "\\}", localVarApiClient.escapeString(namespaceId.toString())) .replaceAll("\\{" + "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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getNamespaceMetadataByKeyValidateBeforeCall(String namespaceId, String key, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespaceId' is set if (namespaceId == null) { throw new ApiException("Missing the required parameter 'namespaceId' when calling getNamespaceMetadataByKey(Async)"); } // verify the required parameter 'key' is set if (key == null) { throw new ApiException("Missing the required parameter 'key' when calling getNamespaceMetadataByKey(Async)"); } okhttp3.Call localVarCall = getNamespaceMetadataByKeyCall(namespaceId, key, _callback); return localVarCall; } /** * Get namespace metadata * Returns the namespace metadata given a namespace id and a key. * @param namespaceId Namespace identifier. (required) * @param key Metadata key. (required) * @return MetadataEntriesDTO * @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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public MetadataEntriesDTO getNamespaceMetadataByKey(String namespaceId, String key) throws ApiException { ApiResponse localVarResp = getNamespaceMetadataByKeyWithHttpInfo(namespaceId, key); return localVarResp.getData(); } /** * Get namespace metadata * Returns the namespace metadata given a namespace id and a key. * @param namespaceId Namespace identifier. (required) * @param key Metadata key. (required) * @return ApiResponse<MetadataEntriesDTO> * @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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public ApiResponse getNamespaceMetadataByKeyWithHttpInfo(String namespaceId, String key) throws ApiException { okhttp3.Call localVarCall = getNamespaceMetadataByKeyValidateBeforeCall(namespaceId, key, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get namespace metadata (asynchronously) * Returns the namespace metadata given a namespace id and a key. * @param namespaceId Namespace identifier. (required) * @param key Metadata 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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public okhttp3.Call getNamespaceMetadataByKeyAsync(String namespaceId, String key, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getNamespaceMetadataByKeyValidateBeforeCall(namespaceId, key, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getNamespaceMetadataByKeyAndSender * @param namespaceId Namespace identifier. (required) * @param key Metadata key. (required) * @param sourceAddress Account address. (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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public okhttp3.Call getNamespaceMetadataByKeyAndSenderCall(String namespaceId, String key, String sourceAddress, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/metadata/namespace/{namespaceId}/key/{key}/sender/{sourceAddress}" .replaceAll("\\{" + "namespaceId" + "\\}", localVarApiClient.escapeString(namespaceId.toString())) .replaceAll("\\{" + "key" + "\\}", localVarApiClient.escapeString(key.toString())) .replaceAll("\\{" + "sourceAddress" + "\\}", localVarApiClient.escapeString(sourceAddress.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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getNamespaceMetadataByKeyAndSenderValidateBeforeCall(String namespaceId, String key, String sourceAddress, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespaceId' is set if (namespaceId == null) { throw new ApiException("Missing the required parameter 'namespaceId' when calling getNamespaceMetadataByKeyAndSender(Async)"); } // verify the required parameter 'key' is set if (key == null) { throw new ApiException("Missing the required parameter 'key' when calling getNamespaceMetadataByKeyAndSender(Async)"); } // verify the required parameter 'sourceAddress' is set if (sourceAddress == null) { throw new ApiException("Missing the required parameter 'sourceAddress' when calling getNamespaceMetadataByKeyAndSender(Async)"); } okhttp3.Call localVarCall = getNamespaceMetadataByKeyAndSenderCall(namespaceId, key, sourceAddress, _callback); return localVarCall; } /** * Get namespace metadata * Returns the namespace metadata given a namespace id, a key, and a sender. * @param namespaceId Namespace identifier. (required) * @param key Metadata key. (required) * @param sourceAddress Account address. (required) * @return MetadataDTO * @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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public MetadataDTO getNamespaceMetadataByKeyAndSender(String namespaceId, String key, String sourceAddress) throws ApiException { ApiResponse localVarResp = getNamespaceMetadataByKeyAndSenderWithHttpInfo(namespaceId, key, sourceAddress); return localVarResp.getData(); } /** * Get namespace metadata * Returns the namespace metadata given a namespace id, a key, and a sender. * @param namespaceId Namespace identifier. (required) * @param key Metadata key. (required) * @param sourceAddress Account address. (required) * @return ApiResponse<MetadataDTO> * @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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public ApiResponse getNamespaceMetadataByKeyAndSenderWithHttpInfo(String namespaceId, String key, String sourceAddress) throws ApiException { okhttp3.Call localVarCall = getNamespaceMetadataByKeyAndSenderValidateBeforeCall(namespaceId, key, sourceAddress, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get namespace metadata (asynchronously) * Returns the namespace metadata given a namespace id, a key, and a sender. * @param namespaceId Namespace identifier. (required) * @param key Metadata key. (required) * @param sourceAddress Account address. (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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public okhttp3.Call getNamespaceMetadataByKeyAndSenderAsync(String namespaceId, String key, String sourceAddress, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getNamespaceMetadataByKeyAndSenderValidateBeforeCall(namespaceId, key, sourceAddress, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy