Browse Source

Merge branch 'master' of http://git.ius.plus/Project-Wing/fis_lib_jsonrpc

Melon 2 years ago
parent
commit
246bd7fcda
2 changed files with 18 additions and 6 deletions
  1. 6 6
      lib/rpc.dart
  2. 12 0
      lib/services/platform.dart

+ 6 - 6
lib/rpc.dart

@@ -76,6 +76,12 @@ class JsonRpcProxy {
   ConnectService get connect =>
       findService(() => new ConnectService(currentHostAddress));
 
+  LockService get lock =>
+      findService(() => new LockService(currentHostAddress));
+
+  LoginService get login =>
+      findService(() => new LoginService(currentHostAddress));
+
   DeviceService get device =>
       findService(() => new DeviceService(currentHostAddress));
 
@@ -85,12 +91,6 @@ class JsonRpcProxy {
   IdentityApplyService get identityApply =>
       findService(() => new IdentityApplyService(currentHostAddress));
 
-  LockService get lock =>
-      findService(() => new LockService(currentHostAddress));
-
-  LoginService get login =>
-      findService(() => new LoginService(currentHostAddress));
-
   OrganizationService get organization =>
       findService(() => new OrganizationService(currentHostAddress));
 

+ 12 - 0
lib/services/platform.dart

@@ -285,6 +285,18 @@ class PlatformService extends JsonRpcClientBase {
     return rpcRst;
   }
 
+  ///启用壳子录音
+  Future<void> startShellRecord() async {
+    var rpcRst = await call("StartShellRecord");
+    return rpcRst;
+  }
+
+  ///停止壳子录音
+  Future<String> stopShellRecord() async {
+    var rpcRst = await call("StopShellRecord");
+    return rpcRst;
+  }
+
   ///导出日志
   Future<bool> exportAppLogZipFile(int exportType, String fileName) async {
     var rpcRst = await call("ExportAppLogZipFile", [exportType, fileName]);