upgrade_notification.dart 605 B

123456789101112131415161718192021222324
  1. import 'package:fis_jsonrpc/rpc.dart';
  2. ///升级通知
  3. class UpgradeNotificationHandler
  4. extends NotificationHandler<UpgradeNotification> {
  5. UpgradeNotificationHandler()
  6. : super(NotificationTypeEnum.UpgradeNotification);
  7. @override
  8. void execute(UpgradeNotification message) {
  9. super.execute(message);
  10. }
  11. //TODO Jimmy 测试代码,将来会删除
  12. void mockNotification() {
  13. Future.delayed(
  14. const Duration(milliseconds: 60000),
  15. () {
  16. print("[JimmyTest] I am the mocked upgrade notification");
  17. execute(new UpgradeNotification());
  18. },
  19. );
  20. }
  21. }