com.webank.wecrosssdk.rpc.WeCrossRPC Maven / Gradle / Ivy
package com.webank.wecrosssdk.rpc;
import com.webank.wecrosssdk.rpc.methods.Response;
import com.webank.wecrosssdk.rpc.methods.response.GetDataResponse;
import com.webank.wecrosssdk.rpc.methods.response.ResourcesResponse;
import com.webank.wecrosssdk.rpc.methods.response.SetDataResponse;
import com.webank.wecrosssdk.rpc.methods.response.TransactionResponse;
import com.webank.wecrosssdk.rpc.service.WeCrossService;
public interface WeCrossRPC {
static WeCrossRPC init(WeCrossService weCrossService) {
return new WeCrossRPCRest(weCrossService);
}
RemoteCall status(String path);
RemoteCall list(Boolean ignoreRemote);
RemoteCall getData(String path, String key);
RemoteCall setData(String path, String key, String value);
RemoteCall call(String path, String method, Object... args);
RemoteCall call(
String path, String retTypes[], String method, Object... args);
RemoteCall callInt(String path, String method, Object... args);
RemoteCall callIntArray(String path, String method, Object... args);
RemoteCall callString(String path, String method, Object... args);
RemoteCall callStringArray(String path, String method, Object... args);
RemoteCall sendTransaction(String path, String method, Object... args);
RemoteCall sendTransaction(
String path, String retTypes[], String method, Object... args);
RemoteCall sendTransactionInt(String path, String method, Object... args);
RemoteCall sendTransactionIntArray(
String path, String method, Object... args);
RemoteCall sendTransactionString(
String path, String method, Object... args);
RemoteCall sendTransactionStringArray(
String path, String method, Object... args);
}