public ExposureNotificationService(HttpDataService httpDataService, UserDataService userDataService) { this.httpDataService = httpDataService; this.userDataService = userDataService; userData = this.userDataService.Get(); this.userDataService.UserDataChanged += _userDataChanged; }
public ExposureNotificationService(INavigationService navigationService, UserDataService userDataService, HttpDataService httpDataService) { this.httpDataService = httpDataService; this.navigationService = navigationService; this.userDataService = userDataService; userData = userDataService.Get(); userDataService.UserDataChanged += OnUserDataChanged; }
public UserDataService() { this.httpDataService = Xamarin.Forms.DependencyService.Resolve <HttpDataService>(); current = Get(); if (current != null) { StartTimer(); } }
public UserDataService() { httpDataService = DependencyService.Resolve <HttpDataService>(); navigationService = DependencyService.Resolve <INavigationService>(); notificationService = DependencyService.Resolve <INotificationService>(); notificationService.Initialize(); notificationService.NotificationReceived += OnLocalNotificationTaped; current = Get(); if (current != null) { StartTimer(); } }
public UserDataService(HttpDataService httpDataService, INavigationService navigationService) { this.httpDataService = httpDataService; // this.navigationService = navigationService; current = Get(); if (current != null) { // User does't have secret if (!httpDataService.HasSecret()) { return; } StartTimer(); } }
public UserDataService(HttpDataService httpDataService, INavigationService navigationService, INotificationService notificationService) { this.httpDataService = httpDataService; this.navigationService = navigationService; this.notificationService = notificationService; this.notificationService.Initialize(); this.notificationService.NotificationReceived += OnLocalNotificationTaped; current = Get(); if (current != null) { // User does't have secret if (!httpDataService.HasSecret()) { return; } StartTimer(); } }
public UserDataService() { httpDataService = DependencyService.Resolve <HttpDataService>(); navigationService = DependencyService.Resolve <INavigationService>(); notificationService = DependencyService.Resolve <INotificationService>(); notificationService.Initialize(); notificationService.NotificationReceived += OnLocalNotificationTaped; current = Get(); if (current != null) { // User does't have secret if (!httpDataService.HasSecret()) { return; } StartTimer(); } }
public UserDataService(HttpDataService httpDataService, INavigationService navigationService) { this.httpDataService = httpDataService; // this.navigationService = navigationService; current = Get(); /* * if (current != null) * { * // User does't have secret * if (!httpDataService.HasSecret()) * { * return; * } * StartTimer(); * } */ }
public UserDataService() { httpDataService = DependencyService.Resolve <HttpDataService>(); navigationService = DependencyService.Resolve <INavigationService>(); notificationService = DependencyService.Resolve <INotificationService>(); notificationService.Initialize(); notificationService.NotificationReceived += OnLocalNotificationTaped; current = Get(); if (current != null) { // HACK: Provisional START if (string.IsNullOrWhiteSpace(current.Secret)) { current = null; return; } // Provisional END httpDataService.SetSecret(current.Secret); StartTimer(); } }
public ExposureNotificationHandler() { this.httpDataService = Xamarin.Forms.DependencyService.Resolve <HttpDataService>(); this.userDataService = Xamarin.Forms.DependencyService.Resolve <UserDataService>(); userData = this.userDataService.Get(); configuration = new Configuration { MinimumRiskScore = 1, AttenuationWeight = 50, TransmissionWeight = 50, DurationWeight = 50, DaysSinceLastExposureWeight = 50, TransmissionRiskScores = new int[] { 1, 2, 3, 4, 5, 6, 7, 8 }, AttenuationScores = new[] { 1, 2, 3, 4, 5, 6, 7, 8 }, DurationScores = new[] { 1, 2, 3, 4, 5, 6, 7, 8 }, DaysSinceLastExposureScores = new[] { 1, 2, 3, 4, 5, 6, 7, 8 }, DurationAtAttenuationThresholds = new[] { 50, 70 } }; }
public OTPService() { _httpDataService = Xamarin.Forms.DependencyService.Resolve <HttpDataService>(); }
public ExposureNotificationHandler() { this.httpDataService = Xamarin.Forms.DependencyService.Resolve <HttpDataService>(); this.userDataService = Xamarin.Forms.DependencyService.Resolve <UserDataService>(); userData = this.userDataService.Get(); }
public UserDataService(HttpDataService httpDataService) { this.httpDataService = httpDataService; current = Get(); }
public OTPService(HttpDataService httpDataService) { _httpDataService = httpDataService; }
public UserDataService() { this.httpDataService = Xamarin.Forms.DependencyService.Resolve <HttpDataService>(); }