Esempio n. 1
0
        public void ExposureDetected(IExposureSummary exposureSummary, IList <IExposureInformation> exposureInformations)
        {
            D.Print("# ExposureDetected ExposureInformation");

            var exposureResult = new ExposureResult(GetEnClient().ExposureConfiguration,
                                                    DateTime.Now,
                                                    exposureSummary, exposureInformations);

            _ = Task.Run(async() => await Utils.SaveExposureResult(
                             exposureResult,
                             (await GetEnClient().GetVersionAsync()).ToString(),
                             _exposureDetectionResultDir)
                         );
        }
Esempio n. 2
0
        public ExposureResult(ExposureConfiguration exposureConfiguration,
                              DateTime generatedAt,
                              IExposureSummary exposureSummary, IList <IExposureInformation> exposureInformations,
                              IList <IDailySummary> dailySummaries, IList <IExposureWindow> exposureWindows)
        {
            this.exposureConfiguration = exposureConfiguration;

            // to ISO 8601
            this.generatedAt = generatedAt.ToString("yyyy-MM-ddTHH\\:mm\\:ss.fffffffzzz");

            this.exposureSummary      = exposureSummary;
            this.exposureInformations = exposureInformations;
            this.dailySummaries       = dailySummaries;
            this.exposureWindows      = exposureWindows;

            UpdateId();
        }
Esempio n. 3
0
 public ExposureResult(ExposureConfiguration exposureConfiguration,
                       DateTime generatedAt,
                       IExposureSummary exposureSummary, IList <IExposureInformation> exposureInformations)
     : this(exposureConfiguration, generatedAt, exposureSummary, exposureInformations, null, null)
 {
 }
Esempio n. 4
0
 public void ExposureDetected(IExposureSummary exposureSummary, IList <IExposureInformation> exposureInformations)
 {
     D.Print("# ExposureDetected ExposureInformation");
 }