예제 #1
0
 public HomePageViewModel(INavigationService navigationService, ILoggerService loggerService, IUserDataService userDataService, IExposureNotificationService exposureNotificationService) : base(navigationService)
 {
     Title = AppResources.HomePageTitle;
     this.loggerService               = loggerService;
     this.userDataService             = userDataService;
     this.exposureNotificationService = exposureNotificationService;
 }
예제 #2
0
 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;
 }
예제 #3
0
 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;
 }
예제 #5
0
        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);
                }
            }
        }
예제 #6
0
 public ContactedNotifyPageViewModel(INavigationService navigationService, ILoggerService loggerService, IExposureNotificationService exposureNotificationService) : base(navigationService)
 {
     Title = AppResources.TitileUserStatusSettings;
     this.loggerService = loggerService;
     ExposureCount      = exposureNotificationService.GetExposureCount().ToString();
 }
예제 #7
0
 public TutorialPage4ViewModel(INavigationService navigationService, ILoggerService loggerService, IExposureNotificationService exposureNotificationService) : base(navigationService)
 {
     this.loggerService = loggerService;
     this.exposureNotificationService = exposureNotificationService;
 }