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

io.nem.sdk.openapi.jersey2.api.MultisigRoutesApi Maven / Gradle / Ivy

There is a newer version: 0.8.4
Show newest version
package io.nem.sdk.openapi.jersey2.api;

import io.nem.sdk.openapi.jersey2.invoker.ApiException;
import io.nem.sdk.openapi.jersey2.invoker.ApiClient;
import io.nem.sdk.openapi.jersey2.invoker.ApiResponse;
import io.nem.sdk.openapi.jersey2.invoker.Configuration;
import io.nem.sdk.openapi.jersey2.invoker.Pair;

import javax.ws.rs.core.GenericType;

import io.nem.sdk.openapi.jersey2.model.ModelError;
import io.nem.sdk.openapi.jersey2.model.MultisigAccountGraphInfoDTO;
import io.nem.sdk.openapi.jersey2.model.MultisigAccountInfoDTO;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-02-07T22:44:38.001Z[UTC]")
public class MultisigRoutesApi {
  private ApiClient apiClient;

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

  public MultisigRoutesApi(ApiClient apiClient) {
    this.apiClient = apiClient;
  }

  public ApiClient getApiClient() {
    return apiClient;
  }

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

  /**
   * Get multisig account information
   * Returns the multisig account information.
   * @param accountId Account public key or address enconded using a 32-character set. (required)
   * @return MultisigAccountInfoDTO
   * @throws ApiException if fails to make API call
   * @http.response.details
     
Status Code Description Response Headers
200 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public MultisigAccountInfoDTO getAccountMultisig(String accountId) throws ApiException { return getAccountMultisigWithHttpInfo(accountId).getData(); } /** * Get multisig account information * Returns the multisig account information. * @param accountId Account public key or address enconded using a 32-character set. (required) * @return ApiResponse<MultisigAccountInfoDTO> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public ApiResponse getAccountMultisigWithHttpInfo(String accountId) throws ApiException { Object localVarPostBody = new Object(); // verify the required parameter 'accountId' is set if (accountId == null) { throw new ApiException(400, "Missing the required parameter 'accountId' when calling getAccountMultisig"); } // create path and map variables String localVarPath = "/account/{accountId}/multisig" .replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString())); // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { }; GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Get multisig account graph information * Returns the multisig account graph. * @param accountId Account public key or address enconded using a 32-character set. (required) * @return List<MultisigAccountGraphInfoDTO> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public List getAccountMultisigGraph(String accountId) throws ApiException { return getAccountMultisigGraphWithHttpInfo(accountId).getData(); } /** * Get multisig account graph information * Returns the multisig account graph. * @param accountId Account public key or address enconded using a 32-character set. (required) * @return ApiResponse<List<MultisigAccountGraphInfoDTO>> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public ApiResponse> getAccountMultisigGraphWithHttpInfo(String accountId) throws ApiException { Object localVarPostBody = new Object(); // verify the required parameter 'accountId' is set if (accountId == null) { throw new ApiException(400, "Missing the required parameter 'accountId' when calling getAccountMultisigGraph"); } // create path and map variables String localVarPath = "/account/{accountId}/multisig/graph" .replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString())); // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { }; GenericType> localVarReturnType = new GenericType>() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy