public ExposureCheckPageViewModel(
            INavigationService navigationService,
            ILoggerService loggerService,
            IExposureDataRepository exposureDataRepository,
            IExposureRiskCalculationService exposureRiskCalculationService,
            ILocalPathService localPathService,
            IExposureDataExportService exposureDataExportService,
            IUserDataRepository userDataRepository,
            IExposureRiskCalculationConfigurationRepository exposureRiskCalculationConfigurationRepository,
            IDateTimeUtility dateTimeUtility
            ) : base(navigationService)
        {
            _loggerService                  = loggerService;
            _exposureDataRepository         = exposureDataRepository;
            _exposureRiskCalculationService = exposureRiskCalculationService;
            _localPathService               = localPathService;
            _exposureDataExportService      = exposureDataExportService;
            _userDataRepository             = userDataRepository;
            _exposureRiskCalculationConfigurationRepository = exposureRiskCalculationConfigurationRepository;
            _dateTimeUtility = dateTimeUtility;

            ExposureCheckScores = new ObservableCollection <ExposureCheckScoreModel>();
            UtcDescription      = string.Format(
                AppResources.LowRiskContactPageAnnotationDecription2,
                TimeZoneInfo.Local.StandardName
                );
        }
Esempio n. 2
0
        public ExposuresPageViewModel(
            INavigationService navigationService,
            IExposureDataRepository exposureDataRepository,
            IExposureRiskCalculationConfigurationRepository exposureRiskCalculationConfigurationRepository,
            IExposureRiskCalculationService exposureRiskCalculationService,
            ILocalPathService localPathService,
            IExposureDataExportService exposureDataExportService,
            ILoggerService loggerService
            ) : base(navigationService)
        {
            _exposureDataRepository = exposureDataRepository;
            _exposureRiskCalculationConfigurationRepository = exposureRiskCalculationConfigurationRepository;
            _exposureRiskCalculationService = exposureRiskCalculationService;
            _localPathService          = localPathService;
            _exposureDataExportService = exposureDataExportService;
            _loggerService             = loggerService;

            Title          = AppResources.MainExposures;
            Exposures      = new ObservableCollection <ExposureSummary>();
            UtcDescription = string.Format(
                AppResources.ExposuresPageToUtcDescription,
                TimeZoneInfo.Local.StandardName
                );
        }