Class NetworkRoutesApi
- java.lang.Object
-
- io.nem.sdk.openapi.okhttp_gson.api.NetworkRoutesApi
-
public class NetworkRoutesApi extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description NetworkRoutesApi()NetworkRoutesApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiClientgetApiClient()NetworkTypeDTOgetNetworkType()Get the current network type of the chain Returns the current network type.okhttp3.CallgetNetworkTypeAsync(ApiCallback<NetworkTypeDTO> _callback)Get the current network type of the chain (asynchronously) Returns the current network type.okhttp3.CallgetNetworkTypeCall(ApiCallback _callback)Build call for getNetworkTypeApiResponse<NetworkTypeDTO>getNetworkTypeWithHttpInfo()Get the current network type of the chain Returns the current network type.voidsetApiClient(ApiClient apiClient)
-
-
-
Constructor Detail
-
NetworkRoutesApi
public NetworkRoutesApi()
-
NetworkRoutesApi
public NetworkRoutesApi(ApiClient apiClient)
-
-
Method Detail
-
getApiClient
public ApiClient getApiClient()
-
setApiClient
public void setApiClient(ApiClient apiClient)
-
getNetworkTypeCall
public okhttp3.Call getNetworkTypeCall(ApiCallback _callback) throws ApiException
Build call for getNetworkType- Parameters:
_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Status Code Description Response Headers 200 success -
-
getNetworkType
public NetworkTypeDTO getNetworkType() throws ApiException
Get the current network type of the chain Returns the current network type.- Returns:
- NetworkTypeDTO
- 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 -
-
getNetworkTypeWithHttpInfo
public ApiResponse<NetworkTypeDTO> getNetworkTypeWithHttpInfo() throws ApiException
Get the current network type of the chain Returns the current network type.- Returns:
- ApiResponse<NetworkTypeDTO>
- 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 -
-
getNetworkTypeAsync
public okhttp3.Call getNetworkTypeAsync(ApiCallback<NetworkTypeDTO> _callback) throws ApiException
Get the current network type of the chain (asynchronously) Returns the current network type.- Parameters:
_callback- The callback to be executed when the API call finishes- Returns:
- 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 -
-
-