123456789101112131415161718192021222324252627282930313233343536 |
- import '../client_base.dart';
- class PlatformService extends JsonRpcClientBase {
- PlatformService(
- String host, {
- String serviceName = "IPlatformService",
- Map<String, String>? headers,
- int? timeout,
- }) : super(
- host,
- serviceName,
- headers: headers,
- timeout: timeout,
- );
-
- Future<bool> loadTheme(String name) async {
- var rpcRst = await call("LoadTheme", name);
- return rpcRst;
- }
-
-
- Future<bool> saveConfig(String jsonText) async {
- var rpcRst = await call("SaveConfig", jsonText);
- return rpcRst;
- }
-
- Future<String?> getConfig() async {
- var rpcRst = await call("GetConfig");
- return rpcRst;
- }
- }
|