public StatePickerViewModel(IPropertyTrackerService propertyTrackerService, IGeoDataService geoService, IUserDialogService dialogService, IMvxMessenger messenger) { _propertyTrackerService = propertyTrackerService; _geoService = geoService; _dialogService = dialogService; _messenger = messenger; States = new ObservableCollection<string>(); }
public StatePickerViewModel(IPropertyTrackerService propertyTrackerService, IGeoDataService geoService, IUserDialogService dialogService, IMvxMessenger messenger) { _propertyTrackerService = propertyTrackerService; _geoService = geoService; _dialogService = dialogService; _messenger = messenger; States = new ObservableCollection <string>(); }
public HomeViewModel(IMvxMessenger messenger, ITrackFacade track, IGeoLocationWatcher geoWatcher, IStoredSettingsService storedSettingsService, ISynchronisationService synchronisationService, IWaypointChecker waypointChecker, IGeoDataService geoDataService) { _messenger = messenger; _track = track; _geoWatcher = geoWatcher; _storedSettingsService = storedSettingsService; this.WaypointChecker = waypointChecker; this.synchronisationService = synchronisationService; this.geoDataService = geoDataService; IsBound = _geoWatcher.IsBound; logoutCommand = new MvxCommand(() => { _track.StopServices(); _storedSettingsService.IsAuthorized = false; Close(this); ShowViewModel <LoginViewModel>(); }); _profileCommand = new MvxCommand(() => { ShowViewModel <ProfileViewModel>(); }); _payCommand = new MvxCommand(() => { ShowViewModel <PayViewModel>(); }); _payHistoryCommand = new MvxCommand(() => { ShowViewModel <PayHistoryViewModel>(); }); _trackingCommand = new MvxCommand(async() => { Log.LogMessage("Tracking button is pressed!"); IsBound = !IsBound; var result = IsBound ? await _track.StartServicesAsync() : _track.StopServices(); IsBound = _geoWatcher.IsBound; }); _tokens = new List <MvxSubscriptionToken>(); NextGeoLocationCommand = new MvxCommand(() => NextLocation()); PlayPauseIterationCommand = new MvxCommand(() => PlayPauseLocationIteration()); WaypointActions = new List <WaypointAction>() { WaypointAction.Entrance, WaypointAction.Bridge, WaypointAction.Exit }; SelectedWaypointAction = WaypointAction.Entrance; }
public Startup(IAddressService addressService, IGeoDataService geoDataService, IBBRService bbrService) { _addressService = addressService; _geoDataService = geoDataService; _bbrService = bbrService; }
public WaypointChecker() { storedSettingsService = Mvx.Resolve <IStoredSettingsService>(); geoDataService = Mvx.Resolve <IGeoDataService>(); messenger = Mvx.Resolve <IMvxMessenger>(); }
public GeoDataController(IGeoDataService geoDataService) { this.geoDataService = geoDataService; }