Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package io.nem.symbol.sdk.openapi.jersey2.api;
import io.nem.symbol.sdk.openapi.jersey2.invoker.ApiException;
import io.nem.symbol.sdk.openapi.jersey2.invoker.ApiClient;
import io.nem.symbol.sdk.openapi.jersey2.invoker.ApiResponse;
import io.nem.symbol.sdk.openapi.jersey2.invoker.Configuration;
import io.nem.symbol.sdk.openapi.jersey2.invoker.Pair;
import javax.ws.rs.core.GenericType;
import io.nem.symbol.sdk.openapi.jersey2.model.ModelError;
import io.nem.symbol.sdk.openapi.jersey2.model.NetworkConfigurationDTO;
import io.nem.symbol.sdk.openapi.jersey2.model.NetworkTypeDTO;
import io.nem.symbol.sdk.openapi.jersey2.model.RentalFeesDTO;
import io.nem.symbol.sdk.openapi.jersey2.model.TransactionFeesDTO;
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 = "2021-02-02T19:39:53.661Z[UTC]")
public class NetworkRoutesApi {
private ApiClient apiClient;
public NetworkRoutesApi() {
this(Configuration.getDefaultApiClient());
}
public NetworkRoutesApi(ApiClient apiClient) {
this.apiClient = apiClient;
}
public ApiClient getApiClient() {
return apiClient;
}
public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
}
/**
* Get the network properties
* Returns the content from a catapult-server network configuration file (resources/config-network.properties). To enable this feature, the REST setting \"network.propertiesFilePath\" must define where the file is located. This is adjustable via the configuration file (rest/resources/rest.json) per REST instance.
* @return NetworkConfigurationDTO
* @throws ApiException if fails to make API call
* @http.response.details
Status Code
Description
Response Headers
200
success
-
409
InvalidArgument
-
*/
public NetworkConfigurationDTO getNetworkProperties() throws ApiException {
return getNetworkPropertiesWithHttpInfo().getData();
}
/**
* Get the network properties
* Returns the content from a catapult-server network configuration file (resources/config-network.properties). To enable this feature, the REST setting \"network.propertiesFilePath\" must define where the file is located. This is adjustable via the configuration file (rest/resources/rest.json) per REST instance.
* @return ApiResponse<NetworkConfigurationDTO>
* @throws ApiException if fails to make API call
* @http.response.details
Status Code
Description
Response Headers
200
success
-
409
InvalidArgument
-
*/
public ApiResponse getNetworkPropertiesWithHttpInfo() throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/network/properties";
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = 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("NetworkRoutesApi.getNetworkProperties", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Get the current network type of the chain
* Returns the current network type.
* @return NetworkTypeDTO
* @throws ApiException if fails to make API call
* @http.response.details
Status Code
Description
Response Headers
200
success
-
*/
public NetworkTypeDTO getNetworkType() throws ApiException {
return getNetworkTypeWithHttpInfo().getData();
}
/**
* Get the current network type of the chain
* Returns the current network type.
* @return ApiResponse<NetworkTypeDTO>
* @throws ApiException if fails to make API call
* @http.response.details
Status Code
Description
Response Headers
200
success
-
*/
public ApiResponse getNetworkTypeWithHttpInfo() throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/network";
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = 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("NetworkRoutesApi.getNetworkType", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Get rental fees information
* Returns the estimated effective rental fees for namespaces and mosaics. This endpoint is only available if the REST instance has access to catapult-server ``resources/config-network.properties`` file. To activate this feature, add the setting \"network.propertiesFilePath\" in the configuration file (rest/resources/rest.json).
* @return RentalFeesDTO
* @throws ApiException if fails to make API call
* @http.response.details
Status Code
Description
Response Headers
200
success
-
409
InvalidArgument
-
*/
public RentalFeesDTO getRentalFees() throws ApiException {
return getRentalFeesWithHttpInfo().getData();
}
/**
* Get rental fees information
* Returns the estimated effective rental fees for namespaces and mosaics. This endpoint is only available if the REST instance has access to catapult-server ``resources/config-network.properties`` file. To activate this feature, add the setting \"network.propertiesFilePath\" in the configuration file (rest/resources/rest.json).
* @return ApiResponse<RentalFeesDTO>
* @throws ApiException if fails to make API call
* @http.response.details
Status Code
Description
Response Headers
200
success
-
409
InvalidArgument
-
*/
public ApiResponse getRentalFeesWithHttpInfo() throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/network/fees/rental";
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = 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("NetworkRoutesApi.getRentalFees", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Get transaction fees information
* Returns the average, median, highest and lower fee multiplier over the last \"numBlocksTransactionFeeStats\". The setting \"numBlocksTransactionFeeStats\" is adjustable via the configuration file (rest/resources/rest.json) per REST instance.
* @return TransactionFeesDTO
* @throws ApiException if fails to make API call
* @http.response.details
Status Code
Description
Response Headers
200
success
-
*/
public TransactionFeesDTO getTransactionFees() throws ApiException {
return getTransactionFeesWithHttpInfo().getData();
}
/**
* Get transaction fees information
* Returns the average, median, highest and lower fee multiplier over the last \"numBlocksTransactionFeeStats\". The setting \"numBlocksTransactionFeeStats\" is adjustable via the configuration file (rest/resources/rest.json) per REST instance.
* @return ApiResponse<TransactionFeesDTO>
* @throws ApiException if fails to make API call
* @http.response.details
Status Code
Description
Response Headers
200
success
-
*/
public ApiResponse getTransactionFeesWithHttpInfo() throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/network/fees/transaction";
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = 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("NetworkRoutesApi.getTransactionFees", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
}