示例#1
0
 public ConversationsController(IConversationsService conversationsService, UserManager <PoolItUser> userManager,
                                IRidesService ridesService)
 {
     this.conversationsService = conversationsService;
     this.userManager          = userManager;
     this.ridesService         = ridesService;
 }
示例#2
0
 public BookingViewModel(IEventsService eventsService, IRidesService ridesService, INavigationService navigationService, IDialogService dialogService) : base(navigationService, dialogService)
 {
     _navigationService = navigationService;
     _dialogService     = dialogService;
     _ridesService      = ridesService;
     _eventsService     = eventsService;
 }
        public CustomRideViewModel(IRidesService ridesService)
        {
            _ridesService = ridesService;

            ShowMap    = false;
            CustomPins = new ObservableCollection <CustomPin>();
        }
示例#4
0
 public RidesController(ICarsService carsService, IRidesService ridesService,
                        IInvitationsService invitationsService)
 {
     this.carsService        = carsService;
     this.ridesService       = ridesService;
     this.invitationsService = invitationsService;
 }
示例#5
0
 public ProfileController(UserManager <PoolItUser> userManager, IRidesService ridesService,
                          IPersonalDataService personalDataService, SignInManager <PoolItUser> signInManager)
 {
     this.userManager         = userManager;
     this.ridesService        = ridesService;
     this.personalDataService = personalDataService;
     this.signInManager       = signInManager;
 }
 public FinishRideHandler(IUnitOfWork unitOfWork, IRidesRepository ridesRepository, IRidesService ridesService,
                          IMediator mediator)
 {
     _unitOfWork      = unitOfWork;
     _ridesRepository = ridesRepository;
     _ridesService    = ridesService;
     _mediator        = mediator;
 }
示例#7
0
        public CustomRideViewModel(IRidesService ridesService, INavigationService navigationService, IDialogService dialogService) : base(navigationService, dialogService)
        {
            _navigationService = navigationService;
            _dialogService     = dialogService;
            _ridesService      = ridesService;

            ShowMap    = false;
            CustomPins = new ObservableCollection <CustomPin>();
        }
        public UwpMyRidesViewModel(IRidesService ridesService,
                                   IWeatherService weatherService,
                                   IEventsService eventsService)
        {
            _ridesService   = ridesService;
            _weatherService = weatherService;
            _eventsService  = eventsService;

            MyRides = new ObservableRangeCollection <Ride>();
        }
示例#9
0
        //public ICommand ShowRecommendedRideCommand => new Command<Suggestion>(RecommendedRideAsync);

        public HomePageViewModel(IWeatherService weatherService,
                                 IEventsService eventsService,
                                 IRidesService ridesService,
                                 ICensusService censusService,
                                 INavigationService navigationService,
                                 ICacheManager cacheManager,
                                 IDialogService dialogService) : base(navigationService, dialogService)
        {
            _navigationService = navigationService;
            _dialogService     = dialogService;
            _weatherService    = weatherService;
            _eventsService     = eventsService;
            _ridesService      = ridesService;
            _censusService     = censusService;
            _cacheManager      = cacheManager;
            Title = "普查终端";
        }
示例#10
0
        public NetworksViewModel(INavigationService navigationService,
                                 IRidesService ridesService,
                                 ICensusService censusService,
                                 ICacheManager cacheManager,
                                 IDialogService dialogService) : base(navigationService, dialogService)
        {
            _navigationService = navigationService;
            _dialogService     = dialogService;
            _censusService     = censusService;
            _ridesService      = ridesService;
            _cacheManager      = cacheManager;
            _myRides           = new ObservableRangeCollection <Ride>();

            Title = "我的网点列表";

            IsBackOption = true;
        }
示例#11
0
        public HomeViewModel(IWeatherService weatherService, IEventsService eventsService, IRidesService ridesService, IMembersService memberService)
        {
            _weatherService = weatherService;
            _eventsService  = eventsService;
            _ridesService   = ridesService;
            _memberService  = memberService;
            Data            = new List <Trends>()
            {
                new Trends {
                    Age1 = "21", Age2 = "25", EntryTime = "10", AgeRange = "21-25"
                },
                new Trends {
                    Age1 = "26", Age2 = "30", EntryTime = "1", AgeRange = "26-30"
                },
                new Trends {
                    Age1 = "31", Age2 = "35", EntryTime = "2", AgeRange = "31-35"
                },
                new Trends {
                    Age1 = "36", Age2 = "40", EntryTime = "3", AgeRange = "36-40"
                },
                new Trends {
                    Age1 = "41", Age2 = "50", EntryTime = "5", AgeRange = ">40"
                }
            };

            UsageData = new ObservableCollection <Usage>()
            {
                new Usage {
                    UsageType = "Happy", Percentage = "75"
                },
                new Usage {
                    UsageType = "Laughing", Percentage = "10"
                },
                new Usage {
                    UsageType = "Sad", Percentage = "15"
                },
            };
        }
 public HomeViewModel(IWeatherService weatherService, IEventsService eventsService, IRidesService ridesService)
 {
     _weatherService = weatherService;
     _eventsService  = eventsService;
     _ridesService   = ridesService;
 }
示例#13
0
 public RidesController(IRidesService ridesService)
 {
     _ridesService = ridesService;
 }
 public PayForRideHandler(IRidesRepository ridesRepository, IRidesService ridesService)
 {
     _ridesRepository = ridesRepository;
     _ridesService    = ridesService;
 }
示例#15
0
 public RidePaymentHandler(IRidesService ridesService, IRidesRepository ridesRepository, IUnitOfWork unitOfWork)
 {
     _ridesService    = ridesService;
     _ridesRepository = ridesRepository;
     _unitOfWork      = unitOfWork;
 }
示例#16
0
        public MyRidesViewModel(IRidesService ridesService)
        {
            _ridesService = ridesService;

            _myRides = new ObservableRangeCollection <Ride>();
        }
示例#17
0
        //public ICommand MakeBookingCommand => new Command(MakeBookingAsync);

        public EventSummaryViewModel(IEventsService eventsService, IRidesService ridesService)
        {
            _eventsService = eventsService;
            _ridesService  = ridesService;
        }
示例#18
0
 public HomeController(IRidesService ridesService)
 {
     this.ridesService = ridesService;
 }
示例#19
0
 public InvitationsController(IInvitationsService invitationsService, IRidesService ridesService)
 {
     this.invitationsService = invitationsService;
     this.ridesService       = ridesService;
 }
示例#20
0
 public FeedbackService(IRequestProvider requestProvider, IRidesService ridesService, ILocationProvider locationProvider)
 {
     _requestProvider  = requestProvider;
     _ridesService     = ridesService;
     _locationProvider = locationProvider;
 }
示例#21
0
 public ConversationsHub(IConversationsService conversationsService, IRidesService ridesService)
 {
     this.conversationsService = conversationsService;
     this.ridesService         = ridesService;
 }
示例#22
0
 public JoinRequestsController(IRidesService ridesService, IJoinRequestsService joinRequestsService)
 {
     this.ridesService        = ridesService;
     this.joinRequestsService = joinRequestsService;
 }
示例#23
0
 public BookingViewModel(IEventsService eventsService, IRidesService ridesService)
 {
     _eventsService = eventsService;
     _ridesService  = ridesService;
 }