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>();
 }
Exemplo n.º 3
0
        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;
        }
Exemplo n.º 4
0
 public Startup(IAddressService addressService, IGeoDataService geoDataService, IBBRService bbrService)
 {
     _addressService = addressService;
     _geoDataService = geoDataService;
     _bbrService     = bbrService;
 }
Exemplo n.º 5
0
 public WaypointChecker()
 {
     storedSettingsService = Mvx.Resolve <IStoredSettingsService>();
     geoDataService        = Mvx.Resolve <IGeoDataService>();
     messenger             = Mvx.Resolve <IMvxMessenger>();
 }
Exemplo n.º 6
0
 public GeoDataController(IGeoDataService geoDataService)
 {
     this.geoDataService = geoDataService;
 }