public SettingsPageViewModel(
     INavigationService navigationService,
     ILoggerService loggerService,
     IUserDataRepository userDataRepository,
     IExposureDataRepository exposureDataRepository,
     IExposureConfigurationRepository exposureConfigurationRepository,
     ISendEventLogStateRepository sendEventLogStateRepository,
     IEventLogRepository eventLogRepository,
     ILogFileService logFileService,
     AbsExposureNotificationApiService exposureNotificationApiService,
     ICloseApplicationService closeApplicationService,
     IEssentialsService essentialsService
     ) : base(navigationService)
 {
     Title                                = AppResources.SettingsPageTitle;
     AppVer                               = essentialsService.AppVersion;
     this.loggerService                   = loggerService;
     this.userDataRepository              = userDataRepository;
     this.exposureDataRepository          = exposureDataRepository;
     this.exposureConfigurationRepository = exposureConfigurationRepository;
     _sendEventLogStateRepository         = sendEventLogStateRepository;
     _eventLogRepository                  = eventLogRepository;
     this.logFileService                  = logFileService;
     this.exposureNotificationApiService  = exposureNotificationApiService;
     this.closeApplicationService         = closeApplicationService;
 }
Exemple #2
0
 public DebugPageViewModel(
     INavigationService navigationService,
     ITermsUpdateService termsUpdateService,
     IExposureConfigurationRepository exposureConfigurationRepository,
     IUserDataRepository userDataRepository,
     IExposureDataRepository exposureDataRepository,
     AbsExposureNotificationApiService exposureNotificationApiService,
     AbsExposureDetectionBackgroundService exposureDetectionBackgroundService,
     ICloseApplicationService closeApplicationService,
     IServerConfigurationRepository serverConfigurationRepository,
     ILocalNotificationService localNotificationService,
     ISendEventLogStateRepository sendEventLogStateRepository,
     IEventLogRepository eventLogRepository,
     IEventLogService eventLogService
     ) : base(navigationService)
 {
     Title = "Title:Debug";
     _termsUpdateService = termsUpdateService;
     _exposureConfigurationRepository = exposureConfigurationRepository;
     _userDataRepository                 = userDataRepository;
     _exposureDataRepository             = exposureDataRepository;
     _exposureNotificationApiService     = exposureNotificationApiService;
     _exposureDetectionBackgroundService = exposureDetectionBackgroundService;
     _closeApplicationService            = closeApplicationService;
     _serverConfigurationRepository      = serverConfigurationRepository;
     _localNotificationService           = localNotificationService;
     _sendEventLogStateRepository        = sendEventLogStateRepository;
     _eventLogRepository                 = eventLogRepository;
     _eventLogService = eventLogService;
 }
Exemple #3
0
 public SettingsPageViewModel(
     INavigationService navigationService,
     ILoggerService loggerService,
     IUserDataRepository userDataRepository,
     IExposureDataRepository exposureDataRepository,
     IExposureConfigurationRepository exposureConfigurationRepository,
     ILogFileService logFileService,
     AbsExposureNotificationApiService exposureNotificationApiService,
     ICloseApplicationService closeApplicationService
     ) : base(navigationService)
 {
     Title                                = AppResources.SettingsPageTitle;
     AppVer                               = AppInfo.VersionString;
     this.loggerService                   = loggerService;
     this.userDataRepository              = userDataRepository;
     this.exposureDataRepository          = exposureDataRepository;
     this.exposureConfigurationRepository = exposureConfigurationRepository;
     this.logFileService                  = logFileService;
     this.exposureNotificationApiService  = exposureNotificationApiService;
     this.closeApplicationService         = closeApplicationService;
 }
Exemple #4
0
 public LostConnectionViewModel()
 {
     _closeApplicationService = DependencyService.Get <ICloseApplicationService>();
 }