예제 #1
0
 public OverduePaymentViewModel(IPaymentService paymentService,
                                IAccountService accountService,
                                IDeviceCollectorService deviceCollectorService,
                                IAppSettings appSettings)
 {
     _paymentService         = paymentService;
     _accountService         = accountService;
     _deviceCollectorService = deviceCollectorService;
     _appSettings            = appSettings;
 }
예제 #2
0
 public CreditCardAddViewModel(
     ILocationService locationService,
     IPaymentService paymentService,
     IAccountService accountService,
     IDeviceCollectorService deviceCollectorService,
     IPhoneService phoneService,
     INetworkRoamingService networkRoamingService)
     : base(locationService, paymentService, accountService)
 {
     _accountService         = accountService;
     _networkRoamingService  = networkRoamingService;
     _deviceCollectorService = deviceCollectorService;
     _phoneService           = phoneService;
 }
        public OrderWorkflowService(ILocationService locationService,
                                    IAccountService accountService,
                                    IGeolocService geolocService,
                                    IAppSettings configurationManager,
                                    ILocalization localize,
                                    IBookingService bookingService,
                                    ICacheService cacheService,
                                    IAccountPaymentService accountPaymentService,
                                    INetworkRoamingService networkRoamingService,
                                    IPaymentService paymentService,
                                    ILogger logger,
                                    IPOIProvider poiProvider,
                                    IVehicleTypeService vehicleTypeService,
                                    IDeviceCollectorService deviceCollectorService)
        {
            _cacheService           = cacheService;
            _appSettings            = configurationManager;
            _geolocService          = geolocService;
            _accountService         = accountService;
            _vehicleTypeService     = vehicleTypeService;
            _locationService        = locationService;
            _deviceCollectorService = deviceCollectorService;

            _bookingSettingsSubject = new BehaviorSubject <BookingSettings>(accountService.CurrentAccount.Settings);

            _vehicleTypeSubject = new BehaviorSubject <int?>(
                _appSettings.Data.VehicleTypeSelectionEnabled
                ? accountService.CurrentAccount.Settings.VehicleTypeId
                : null);

            _localize              = localize;
            _bookingService        = bookingService;
            _accountPaymentService = accountPaymentService;
            _networkRoamingService = networkRoamingService;
            _paymentService        = paymentService;
            _logger      = logger;
            _poiProvider = poiProvider;

            _estimatedFareDisplaySubject = new BehaviorSubject <string>(_localize[_appSettings.Data.DestinationIsRequired ? "NoFareTextIfDestinationIsRequired" : "NoFareText"]);

            Observe(_networkRoamingService.GetAndObserveMarketSettings(), marketSettings => MarketChanged(marketSettings).FireAndForget());
            Observe(_vehicleTypeService.GetAndObserveVehiclesList(), vehiclesList => PreselectDefaultVehicleType(vehiclesList));
        }
예제 #4
0
 public ManualPairingForRideLinqViewModel(IBookingService bookingService, IOrderWorkflowService orderWorkflowService, IDeviceCollectorService deviceCollectorService)
 {
     _bookingService         = bookingService;
     _orderWorkflowService   = orderWorkflowService;
     _deviceCollectorService = deviceCollectorService;
 }