杏聆荟Flutter客户端 JSON-RPC Client库
guanxinyi 9671c5a5dc 1、更新jsonrpc | hai 4 meses | |
---|---|---|
.vs | hai 9 meses | |
.vscode | hai 9 meses | |
lib | hai 4 meses | |
test | %!s(int64=3) %!d(string=hai) anos | |
.gitignore | %!s(int64=3) %!d(string=hai) anos | |
.metadata | %!s(int64=3) %!d(string=hai) anos | |
CHANGELOG.md | %!s(int64=3) %!d(string=hai) anos | |
LICENSE | %!s(int64=3) %!d(string=hai) anos | |
README.md | %!s(int64=3) %!d(string=hai) anos | |
pubspec.yaml | hai 9 meses |
A JSON-RPC client package project for Flyinsono application.
// Create a proxy instance
final rpc = JsonRpcProxy();
// Fetch a api
try {
final String result = await rpc.config.getConfigAsync("service", "section", "settingNode", "defaultValue");
print(result);
} on JsonRpcException catch (e) {
print("Fetch fail. code: ${e.code}, msg: ${e.message}");
} catch (e) {
logger.e("Fetch error.", e);
}