public VoiceCommandService(TrackingService tracking, StorageService storage) { _tracking = tracking; _storage = storage; InstallVoiceCommandDefinitions(); LoadPhrases(); }
public ExceptionService(TrackingService tracking, ResourceService res) { _tracking = tracking; _res = res; }
public MainViewModel(IParkenDdClient client, VoiceCommandService voiceCommandService, JumpListService jumpList, ParkingLotListFilterService filterService, SettingsService settings, StorageService storage, GeolocationService geo, TrackingService tracking, ExceptionService exceptionService) { _client = client; _voiceCommands = voiceCommandService; _jumpList = jumpList; _filterService = filterService; _settings = settings; _storage = storage; _geo = geo; _tracking = tracking; _exceptionService = exceptionService; Messenger.Default.Register(this, (SettingChangedMessage msg) => { if (msg.IsSetting(nameof(_settings.ShowExperimentalCities))) { var temp = SelectedCity; _selectedCity = null; RaisePropertyChanged(() => SelectedCity); RaisePropertyChanged(() => MetaDataCities); _selectedCity = temp; RaisePropertyChanged(() => SelectedCity); } }); PropertyChanged += (sender, args) => { if (args.PropertyName == nameof(MetaDataCities)) { UpdateServiceData(); } }; NetworkInformation.NetworkStatusChanged += sender => { UpdateInternetAvailability(); }; UpdateInternetAvailability(); }