save_and_exit_notification.dart 631 B

1234567891011121314151617
  1. import 'package:fis_jsonrpc/rpc.dart';
  2. import 'package:flyinsono/managers/interfaces/remote_maintenance.dart';
  3. import 'package:get/get.dart';
  4. class SaveAndExitToClientNotificationHandler
  5. extends NotificationHandler<SystemSettingSaveAndExitToClientNotification> {
  6. SaveAndExitToClientNotificationHandler()
  7. : super(
  8. NotificationTypeEnum.SystemSettingSaveAndExitToClientNotification);
  9. @override
  10. void execute(SystemSettingSaveAndExitToClientNotification message) {
  11. var manager = Get.find<IRemoteMaintenanceManager>();
  12. manager.onSystemSaveAndExit.emit(this, true);
  13. super.execute(message);
  14. }
  15. }