getEventInformation method

  1. @override
Future<List<BacnetEventSummary>> getEventInformation(
  1. int deviceId, {
  2. Duration? timeout,
  3. bool background = false,
  4. BacnetCancelToken? cancelToken,
})
override

Returns the objects of deviceId that are in an event state other than normal or have unacknowledged transitions (GetEventInformation, repeated while the device reports more).

Implementation

@override
Future<List<BacnetEventSummary>> getEventInformation(
  int deviceId, {
  Duration? timeout,
  bool background = false,
  BacnetCancelToken? cancelToken,
}) {
  requests.add(FakeBacnetRequest('getEventInformation', deviceId: deviceId));
  return _request(
    BacnetConfirmedService.getEventInformation,
    deviceId,
    cancelToken,
    (device) => List.unmodifiable(
      device.objects.map((o) => o._eventSummary).nonNulls,
    ),
  );
}