checkSession.dart 536 B

12345678910111213141516171819202122
  1. import 'dart:core';
  2. import 'package:fis_jsonrpc/client_base.dart';
  3. class CheckSessionService extends JsonRpcClientBase {
  4. CheckSessionService(
  5. String host, {
  6. String serviceName = "ICheckSessionService",
  7. Map<String, String>? headers,
  8. int? timeout,
  9. }) : super(
  10. host,
  11. serviceName,
  12. headers: headers,
  13. timeout: timeout,
  14. );
  15. Future<bool> checkSessionIdAsync(String sessionId) async {
  16. var rpcRst = await call("CheckSessionIdAsync", sessionId);
  17. return rpcRst;
  18. }
  19. }