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

com.webank.wecrosssdk.rpc.WeCrossRPC Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy