public TripSelectionViewModel(IAggregateService aggregateService, IUberService uberService) : base(ApplicationPage.TripSelection, aggregateService) { this.uberService = uberService; this.timer = new DispatcherTimer(); this.timer.Tick += TimerTick; }
public UberAuthenticationViewModel(IAggregateService aggregateService, IUberService uberService) : base(ApplicationPage.UberAuthentication, aggregateService) { this.uberService = uberService; this.credentials = new UberOAuthCredentials("-PNH94q8gmuRmb5ZvnEVYO0P-ysj_8-_", "1h-6l1ZVRciE0suS9E5LRjbXvoXg-Q6d3lZfaFxX", UberOAuthGrantType.authorization_code); }
public UberTripDetailsViewModel(IAggregateService aggregateService, IUberService uberService) : base(ApplicationPage.UberTripDetails, aggregateService) { this.uberService = uberService; this.timer = new DispatcherTimer(); this.timer.Tick += TimerTick; }
/// <summary> /// Resolves the services. /// </summary> void ResolveServices() { _UserDialogService = DependencyService.Get <IUserDialogService>(); _VersionRetrievalService = DependencyService.Get <IVersionRetrievalService>(); _UberService = DependencyService.Get <IUberService>(); _LyftService = DependencyService.Get <ILyftService>(); _NotificationNavigationService = DependencyService.Get <INotificationNavigationService>(); }
/// <summary> /// Add an Uber Path option by calling this constructor /// </summary> public PathOption(int order, IUberService uberService, Coordinate location, Coordinate destination, double maxDurationInMinutes) { this.uberService = uberService; this.location = location; this.destination = destination; this.maxDurationInMinutes = maxDurationInMinutes; IsUber = true; SetLetter(order); }
public WhereToViewModel(IAggregateService aggregateService, IBumbleApiService BumbleApiService, IUberService uberService) : base(ApplicationPage.WhereTo, aggregateService) { this.user = UnitOfWork.UserRepository.GetUser(); this.BumbleApiService = BumbleApiService; this.uberService = uberService; AppCommandMessage.Send(Messages.Enums.AppCommandMessageReason.RemoveBackEntries); Messenger.Default.Register <RecentTripMessage>(this, (action) => SetRecentTrip(action)); Messenger.Default.Register <FavouriteMessage>(this, (action) => SetFavourite(action)); Messenger.Default.Register <WhereToMessage>(this, (action) => SetWhereTo(action)); this.LocationSearchBoxModel = new SearchBoxModel(UnitOfWork, InMemoryApplicationSettingModel, this, SearchType.Location, BumbleApiService, user, NavigationService); this.DestinationSearchBoxModel = new SearchBoxModel(UnitOfWork, InMemoryApplicationSettingModel, this, SearchType.Destination, BumbleApiService, user, NavigationService); this.LocationSearchBoxModel.Changed += LocationSearchBoxModel_Changed; this.DestinationSearchBoxModel.Changed += LocationSearchBoxModel_Changed; this.LocationSearchBoxModel.SetAutoPopulateState(); }
public WhereToViewModel(IAggregateService aggregateService, IBumbleApiService BumbleApiService, IUberService uberService) : base(ApplicationPage.WhereTo, aggregateService) { this.user = UnitOfWork.UserRepository.GetUser(); this.BumbleApiService = BumbleApiService; this.uberService = uberService; AppCommandMessage.Send(Messages.Enums.AppCommandMessageReason.RemoveBackEntries); Messenger.Default.Register<RecentTripMessage>(this, (action) => SetRecentTrip(action)); Messenger.Default.Register<FavouriteMessage>(this, (action) => SetFavourite(action)); Messenger.Default.Register<WhereToMessage>(this, (action) => SetWhereTo(action)); this.LocationSearchBoxModel = new SearchBoxModel(UnitOfWork, InMemoryApplicationSettingModel, this, SearchType.Location, BumbleApiService, user, NavigationService); this.DestinationSearchBoxModel = new SearchBoxModel(UnitOfWork, InMemoryApplicationSettingModel, this, SearchType.Destination, BumbleApiService, user, NavigationService); this.LocationSearchBoxModel.Changed += LocationSearchBoxModel_Changed; this.DestinationSearchBoxModel.Changed += LocationSearchBoxModel_Changed; this.LocationSearchBoxModel.SetAutoPopulateState(); }
/// <summary> /// Add an Uber Path option by calling this constructor /// </summary> public PathOption(int order, IUberService uberService, Coordinate location, Coordinate destination, double maxDurationInMinutes, string accessToken) { this.uberService = uberService; this.location = location; this.destination = destination; this.maxDurationInMinutes = maxDurationInMinutes; IsUber = true; this.accessToken = accessToken; SetLetter(order); }
public UberMapViewModel(IAggregateService aggregateService, IUberService uberService) : base(ApplicationPage.UberMap, aggregateService) { this.uberService = uberService; }