public TripSelectionViewModel(IAggregateService aggregateService, IUberService uberService)
     : base(ApplicationPage.TripSelection, aggregateService)
 {
     this.uberService = uberService;
     this.timer       = new DispatcherTimer();
     this.timer.Tick += TimerTick;
 }
 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);
        }
예제 #4
0
        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;
        }
예제 #6
0
        public UberTripDetailsViewModel(IAggregateService aggregateService, IUberService uberService)
            : base(ApplicationPage.UberTripDetails, aggregateService)
        {
            this.uberService = uberService;

            this.timer       = new DispatcherTimer();
            this.timer.Tick += TimerTick;
        }
예제 #7
0
파일: App.cs 프로젝트: jsauve/HGMF2018
 /// <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>();
 }
예제 #8
0
        /// <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);
        }
예제 #9
0
        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();
        }
예제 #10
0
        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();
        }
예제 #11
0
        /// <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);
        }
예제 #12
0
 public UberMapViewModel(IAggregateService aggregateService, IUberService uberService)
     : base(ApplicationPage.UberMap, aggregateService)
 {
     this.uberService = uberService;
 }