acknowledgeEvent method

  1. @override
Future<void> acknowledgeEvent(
  1. EventNotificationEvent notification, {
  2. required String source,
  3. DateTime? time,
  4. Duration? timeout,
})
override

Acknowledges the transition notification reported.

client.eventNotifications
    .where((alarm) => alarm.ackRequired)
    .listen((alarm) => client.acknowledgeEvent(alarm, source: 'operator'));

Implementation

@override
Future<void> acknowledgeEvent(
  EventNotificationEvent notification, {
  required String source,
  DateTime? time,
  Duration? timeout,
}) => acknowledgeAlarm(
  notification.deviceId,
  notification.object,
  notification.toState,
  notification.timeStamp,
  source: source,
  processId: notification.processId,
  time: time,
);