public HeroService(HttpClient httpClient, IProductApi productService, IPaxApi paxService, ISearchApi searchApi, IScheduleApi scheduleApi, IProductPricingApi productPricingApi, IPaymentApi paymentApi, IBookingApi bookingApi, IVoucherApi voucherApi) { _httpClient = httpClient ?? throw new ArgumentNullException(nameof(httpClient)); ProductApi = productService ?? throw new ArgumentNullException(nameof(productService)); PaxApi = paxService ?? throw new ArgumentNullException(nameof(paxService)); SearchApi = searchApi ?? throw new ArgumentNullException(nameof(searchApi)); ScheduleApi = scheduleApi ?? throw new ArgumentNullException(nameof(scheduleApi)); ProductPricingApi = productPricingApi ?? throw new ArgumentNullException(nameof(productPricingApi)); PaymentApi = paymentApi ?? throw new ArgumentNullException(nameof(paymentApi)); BookingApi = bookingApi ?? throw new ArgumentNullException(nameof(bookingApi)); VoucherApi = voucherApi ?? throw new ArgumentNullException(nameof(voucherApi)); }
public MakeBookingViewModel( IConnectivityService connectivityService, INavigationService navigationService, IBookingApi carTimesApi, IAuthenticationService authenticationService, IToastService toastService, ILocalNotificationService localNotificationService) : base(connectivityService) { _navigationService = navigationService; _bookingApi = carTimesApi; _authenticationService = authenticationService; _toastService = toastService; _localNotificationService = localNotificationService; MakeBookingCommand = new RelayCommand(MakeBooking); }
public BookingDetailsViewModel( IConnectivityService connectivityService, INavigationService navigationService, IBookingApi carTimesApi, IAuthenticationService authenticationService, IDialogService dialogService, IToastService toastService) : base(connectivityService) { _navigationService = navigationService; _bookingApi = carTimesApi; _authenticationService = authenticationService; _dialogService = dialogService; _toastService = toastService; CancelBookingCommand = new RelayCommand(CancelBooking); }
public CalendarViewModel( IConnectivityService connectivityService, IBookingApi bookingApi, INavigationService navigationService, IToastService toastService, ISecurityManager securityManager) : base(connectivityService) { _bookingApi = bookingApi; _navigationService = navigationService; _toastService = toastService; _securityManager = securityManager; MonthSelectedCommand = new RelayCommand <DateTime>(DateSelected); BookingDateSelectedCommand = new RelayCommand <BookingDayViewModel>(BookingDateSelected); CurrentDisplayedDate = DateTime.Now; BookingDaysInMonth = BookingCalendarUtility.GetDaysInMonth(CurrentDisplayedDate); }
public BookingService() { _api = RestService.For <IBookingApi>(Constants.API.BaseUrl, Constants.API.BaseSettings); }