public class ContractsApi extends Object
| Constructor and Description |
|---|
ContractsApi() |
ContractsApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
WorkflowStateTransition |
contractActionGet(Integer contractId,
Integer actionId)
Gets the action matching the specified action ID.
|
com.squareup.okhttp.Call |
contractActionGetAsync(Integer contractId,
Integer actionId,
ApiCallback<WorkflowStateTransition> callback)
(asynchronously)
Gets the action matching the specified action ID.
|
com.squareup.okhttp.Call |
contractActionGetCall(Integer contractId,
Integer actionId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for contractActionGet
|
ApiResponse<WorkflowStateTransition> |
contractActionGetWithHttpInfo(Integer contractId,
Integer actionId)
Gets the action matching the specified action ID.
|
LedgerActionOutput |
contractActionPost(Integer contractId,
WorkflowActionInput actionInformation)
Executes an action for the specified smart contract instance and action ID.
|
com.squareup.okhttp.Call |
contractActionPostAsync(Integer contractId,
WorkflowActionInput actionInformation,
ApiCallback<LedgerActionOutput> callback)
(asynchronously)
Executes an action for the specified smart contract instance and action ID.
|
com.squareup.okhttp.Call |
contractActionPostCall(Integer contractId,
WorkflowActionInput actionInformation,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for contractActionPost
|
ApiResponse<LedgerActionOutput> |
contractActionPostWithHttpInfo(Integer contractId,
WorkflowActionInput actionInformation)
Executes an action for the specified smart contract instance and action ID.
|
WorkflowStateTransitionList |
contractActionsGet(Integer contractId,
Integer top,
Integer skip)
Lists all actions, which can be taken by the given user and current state of the specified smart contract instance.
|
com.squareup.okhttp.Call |
contractActionsGetAsync(Integer contractId,
Integer top,
Integer skip,
ApiCallback<WorkflowStateTransitionList> callback)
(asynchronously)
Lists all actions, which can be taken by the given user and current state of the specified smart contract instance.
|
com.squareup.okhttp.Call |
contractActionsGetCall(Integer contractId,
Integer top,
Integer skip,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for contractActionsGet
|
ApiResponse<WorkflowStateTransitionList> |
contractActionsGetWithHttpInfo(Integer contractId,
Integer top,
Integer skip)
Lists all actions, which can be taken by the given user and current state of the specified smart contract instance.
|
Contract |
contractGet(Integer contractId)
Creates and deploys a new smart contract instance by adding the instance to the Workbench database and sending a transaction to the blockchain.
|
com.squareup.okhttp.Call |
contractGetAsync(Integer contractId,
ApiCallback<Contract> callback)
(asynchronously)
Creates and deploys a new smart contract instance by adding the instance to the Workbench database and sending a transaction to the blockchain.
|
com.squareup.okhttp.Call |
contractGetCall(Integer contractId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for contractGet
|
ApiResponse<Contract> |
contractGetWithHttpInfo(Integer contractId)
Creates and deploys a new smart contract instance by adding the instance to the Workbench database and sending a transaction to the blockchain.
|
WorkflowActionInput |
contractPost(WorkflowActionInput workflowActionInput,
Integer workflowId,
Integer contractCodeId,
Integer connectionId)
Gets the smart contract instance matching a specific workflow instance ID.
|
com.squareup.okhttp.Call |
contractPostAsync(WorkflowActionInput workflowActionInput,
Integer workflowId,
Integer contractCodeId,
Integer connectionId,
ApiCallback<WorkflowActionInput> callback)
(asynchronously)
Gets the smart contract instance matching a specific workflow instance ID.
|
com.squareup.okhttp.Call |
contractPostCall(WorkflowActionInput workflowActionInput,
Integer workflowId,
Integer contractCodeId,
Integer connectionId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for contractPost
|
ApiResponse<WorkflowActionInput> |
contractPostWithHttpInfo(WorkflowActionInput workflowActionInput,
Integer workflowId,
Integer contractCodeId,
Integer connectionId)
Gets the smart contract instance matching a specific workflow instance ID.
|
ContractList |
contractsGet(Integer top,
Integer skip,
Integer workflowId)
Lists the smart contract instances of the specified workflow.
|
com.squareup.okhttp.Call |
contractsGetAsync(Integer top,
Integer skip,
Integer workflowId,
ApiCallback<ContractList> callback)
(asynchronously)
Lists the smart contract instances of the specified workflow.
|
com.squareup.okhttp.Call |
contractsGetCall(Integer top,
Integer skip,
Integer workflowId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for contractsGet
|
ApiResponse<ContractList> |
contractsGetWithHttpInfo(Integer top,
Integer skip,
Integer workflowId)
Lists the smart contract instances of the specified workflow.
|
ApiClient |
getApiClient() |
void |
setApiClient(ApiClient apiClient) |
public ContractsApi()
public ContractsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call contractActionGetCall(Integer contractId, Integer actionId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
contractId - The id of the contract (required)actionId - The id of the action (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic WorkflowStateTransition contractActionGet(Integer contractId, Integer actionId) throws ApiException
contractId - The id of the contract (required)actionId - The id of the action (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<WorkflowStateTransition> contractActionGetWithHttpInfo(Integer contractId, Integer actionId) throws ApiException
contractId - The id of the contract (required)actionId - The id of the action (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call contractActionGetAsync(Integer contractId, Integer actionId, ApiCallback<WorkflowStateTransition> callback) throws ApiException
contractId - The id of the contract (required)actionId - The id of the action (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call contractActionPostCall(Integer contractId, WorkflowActionInput actionInformation, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
contractId - The id of the workflow instance (required)actionInformation - Parameters for a particular action (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic LedgerActionOutput contractActionPost(Integer contractId, WorkflowActionInput actionInformation) throws ApiException
contractId - The id of the workflow instance (required)actionInformation - Parameters for a particular action (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<LedgerActionOutput> contractActionPostWithHttpInfo(Integer contractId, WorkflowActionInput actionInformation) throws ApiException
contractId - The id of the workflow instance (required)actionInformation - Parameters for a particular action (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call contractActionPostAsync(Integer contractId, WorkflowActionInput actionInformation, ApiCallback<LedgerActionOutput> callback) throws ApiException
contractId - The id of the workflow instance (required)actionInformation - Parameters for a particular action (optional)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call contractActionsGetCall(Integer contractId, Integer top, Integer skip, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
contractId - The id of the contract (required)top - The maximum number of items to return (optional)skip - The number of items to skip before returning (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic WorkflowStateTransitionList contractActionsGet(Integer contractId, Integer top, Integer skip) throws ApiException
contractId - The id of the contract (required)top - The maximum number of items to return (optional)skip - The number of items to skip before returning (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<WorkflowStateTransitionList> contractActionsGetWithHttpInfo(Integer contractId, Integer top, Integer skip) throws ApiException
contractId - The id of the contract (required)top - The maximum number of items to return (optional)skip - The number of items to skip before returning (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call contractActionsGetAsync(Integer contractId, Integer top, Integer skip, ApiCallback<WorkflowStateTransitionList> callback) throws ApiException
contractId - The id of the contract (required)top - The maximum number of items to return (optional)skip - The number of items to skip before returning (optional)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call contractGetCall(Integer contractId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
contractId - The id of the contract (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic Contract contractGet(Integer contractId) throws ApiException
contractId - The id of the contract (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Contract> contractGetWithHttpInfo(Integer contractId) throws ApiException
contractId - The id of the contract (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call contractGetAsync(Integer contractId, ApiCallback<Contract> callback) throws ApiException
contractId - The id of the contract (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call contractPostCall(WorkflowActionInput workflowActionInput, Integer workflowId, Integer contractCodeId, Integer connectionId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
workflowActionInput - The set of all contract action parameters. (optional)workflowId - The ID of the workflow. (optional)contractCodeId - The ID of the ledger implementation. (optional)connectionId - The ID of chain instance running on the ledger. (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic WorkflowActionInput contractPost(WorkflowActionInput workflowActionInput, Integer workflowId, Integer contractCodeId, Integer connectionId) throws ApiException
workflowActionInput - The set of all contract action parameters. (optional)workflowId - The ID of the workflow. (optional)contractCodeId - The ID of the ledger implementation. (optional)connectionId - The ID of chain instance running on the ledger. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<WorkflowActionInput> contractPostWithHttpInfo(WorkflowActionInput workflowActionInput, Integer workflowId, Integer contractCodeId, Integer connectionId) throws ApiException
workflowActionInput - The set of all contract action parameters. (optional)workflowId - The ID of the workflow. (optional)contractCodeId - The ID of the ledger implementation. (optional)connectionId - The ID of chain instance running on the ledger. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call contractPostAsync(WorkflowActionInput workflowActionInput, Integer workflowId, Integer contractCodeId, Integer connectionId, ApiCallback<WorkflowActionInput> callback) throws ApiException
workflowActionInput - The set of all contract action parameters. (optional)workflowId - The ID of the workflow. (optional)contractCodeId - The ID of the ledger implementation. (optional)connectionId - The ID of chain instance running on the ledger. (optional)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call contractsGetCall(Integer top, Integer skip, Integer workflowId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
top - The maximum number of items to return (optional)skip - The number of items to skip before returning (optional)workflowId - The ID of the associated workflow (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic ContractList contractsGet(Integer top, Integer skip, Integer workflowId) throws ApiException
top - The maximum number of items to return (optional)skip - The number of items to skip before returning (optional)workflowId - The ID of the associated workflow (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ContractList> contractsGetWithHttpInfo(Integer top, Integer skip, Integer workflowId) throws ApiException
top - The maximum number of items to return (optional)skip - The number of items to skip before returning (optional)workflowId - The ID of the associated workflow (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call contractsGetAsync(Integer top, Integer skip, Integer workflowId, ApiCallback<ContractList> callback) throws ApiException
top - The maximum number of items to return (optional)skip - The number of items to skip before returning (optional)workflowId - The ID of the associated workflow (optional)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectCopyright © 2018. All rights reserved.