public HomePageViewModel(INavigationService navigationService, ILoggerService loggerService, IUserDataService userDataService, IExposureNotificationService exposureNotificationService) : base(navigationService) { Title = AppResources.HomePageTitle; this.loggerService = loggerService; this.userDataService = userDataService; this.exposureNotificationService = exposureNotificationService; }
public UserDataService(IHttpDataService httpDataService, ILoggerService loggerService, IPreferencesService preferencesService, ITermsUpdateService termsUpdateService, IExposureNotificationService exposureNotificationService) { this.httpDataService = httpDataService; this.loggerService = loggerService; this.preferencesService = preferencesService; this.termsUpdateService = termsUpdateService; this.exposureNotificationService = exposureNotificationService; }
public NotifyOtherPageViewModel(INavigationService navigationService, ILoggerService loggerService, IExposureNotificationService exposureNotificationService) : base(navigationService) { Title = AppResources.TitileUserStatusSettings; this.loggerService = loggerService; this.exposureNotificationService = exposureNotificationService; errorCount = 0; DiagnosisUid = ""; DiagnosisDate = DateTime.Today; }
public SettingsPageViewModel(INavigationService navigationService, ILoggerService loggerService, IUserDataService userDataService, IHttpDataService httpDataService, IExposureNotificationService exposureNotificationService, ILogFileService logFileService, ITermsUpdateService termsUpdateService) : base(navigationService) { Title = AppResources.SettingsPageTitle; AppVer = AppInfo.VersionString; this.loggerService = loggerService; this.userDataService = userDataService; this.httpDataService = httpDataService; this.exposureNotificationService = exposureNotificationService; this.logFileService = logFileService; this.termsUpdateService = termsUpdateService; }
public ExposuresPageViewModel(INavigationService navigationService, IExposureNotificationService exposureNotificationService) : base(navigationService) { Title = Resources.AppResources.MainExposures; _exposures = new ObservableCollection <ExposureSummary>(); var exposureInformationList = exposureNotificationService.GetExposureInformationListToDisplay(); if (exposureInformationList != null) { foreach (var en in exposureInformationList.GroupBy(eni => eni.Timestamp)) { var ens = new ExposureSummary(); ens.ExposureDate = en.Key.ToLocalTime().ToString("D", CultureInfo.CurrentCulture); ens.ExposureCount = en.Count().ToString(); _exposures.Add(ens); } } }
public ContactedNotifyPageViewModel(INavigationService navigationService, ILoggerService loggerService, IExposureNotificationService exposureNotificationService) : base(navigationService) { Title = AppResources.TitileUserStatusSettings; this.loggerService = loggerService; ExposureCount = exposureNotificationService.GetExposureCount().ToString(); }
public TutorialPage4ViewModel(INavigationService navigationService, ILoggerService loggerService, IExposureNotificationService exposureNotificationService) : base(navigationService) { this.loggerService = loggerService; this.exposureNotificationService = exposureNotificationService; }