platform.dart 516 B

12345678910111213141516171819202122
  1. import 'package:fisjsonrpc/client_base.dart';
  2. /// 平台服务
  3. class PlatformService extends JsonRpcClientBase {
  4. PlatformService(
  5. String host, {
  6. String serviceName = "IPlatformService",
  7. Map<String, String>? headers,
  8. int? timeout,
  9. }) : super(
  10. host,
  11. serviceName,
  12. headers: headers,
  13. timeout: timeout,
  14. );
  15. /// 加载主题
  16. Future<bool> loadTheme(String name) async {
  17. var rpcRst = await call("loadTheme", name);
  18. return rpcRst == true;
  19. }
  20. }