onSystemStatusSnapshotChanged method

Future<void> onSystemStatusSnapshotChanged(
  1. DocumentSnapshot<Object?> event
)

Implementation

Future<void> onSystemStatusSnapshotChanged(DocumentSnapshot event) async {
  'Got a new system snapshot: $event'.logInfo();
  if (!event.exists) {
    return;
  }

  _applicationStatus = ApplicationStatus.create()..mergeFromProto3Json(event.data(), ignoreUnknownFields: true);
  inqvine.publishEvent<ApplicationStatus>(_applicationStatus!);
}