public PayViewModel(IEventAggregator eventAggregator, IHudService hudService, ISadmApiService sadmApiService, INavigationService navigationService, ISettingsService settingsService, ISadmApiService apiService) : base(navigationService, settingsService, hudService, apiService) { _navigationService = navigationService; _event = eventAggregator; _hudService = hudService; this.sadmApiService = sadmApiService; _event.GetEvent <UrlChangeEvent>().Subscribe(ResponseUrlPayment); }
public ReportListViewModel(INavigationService navigationService, ISettingsService settingsService, IHudService hudService, ISadmApiService apiService) : base(navigationService, settingsService, hudService, apiService) { ReportList = new ObservableCollectionExt <Report>(); }
public SadmApiService(ISettingsService settingsService, IHudService hudService) { SettingsService = settingsService; HudService = hudService; SadmApi = RestService.For <ISadmApi>(new HttpClient(new AuthenticationHelper(this, SettingsService)) { BaseAddress = new Uri(Settings.AppConfiguration.Values.BaseUrl) }); }
/// <summary> /// Initializes a new instance of the <see cref="T:SADM.Helpers.Busy"/> class. /// </summary> /// <param name="viewModel">View model.</param> /// <param name="processDescription">Process description.</param> /// <param name="hudService">Hud service.</param> public Busy(ViewModelBase viewModel, string processDescription, IHudService hudService) { this.viewModel = viewModel; this.hudService = hudService; this.hudService.ShowProgressAsync(processDescription); Device.BeginInvokeOnMainThread(() => { lock (sync) { this.viewModel.IsBusy = true; } }); }
public NotificationsViewModel(INavigationService navigationService, ISettingsService settingsService, IHudService hudService, ISadmApiService apiService) : base(navigationService, settingsService, hudService, apiService) { ShowNotificationCommand = new AsyncCommand(GoToPageAsync <Views.NotificationPage>); NotificationList = new ObservableCollection <Notification> { new Notification { Title = "Tu pago se ha realizado", Message = "", Type = Enums.NotificationType.Success }, new Notification { Title = "Se ha reportado una fuga en el...", Message = "", Type = Enums.NotificationType.Error }, new Notification { Title = "Tu reporte se ha generado", Message = "", Type = Enums.NotificationType.Success }, new Notification { Title = "La fecha de vencimiento de tu...", Message = "", Type = Enums.NotificationType.Success }, new Notification { Title = "La fecha de vencimiento de tu...", Message = "", Type = Enums.NotificationType.Error }, new Notification { Title = "La fecha de vencimiento de tu...", Message = "", Type = Enums.NotificationType.Success } }; }
private void InitServices() { _navigationService = IocContainer.GetContainer().Resolve <IExtendedNavigationService>(); _dialogService = IocContainer.GetContainer().Resolve <IExtendedDialogService> (); _hudService = IocContainer.GetContainer().Resolve <IHudService> (); _browserService = IocContainer.GetContainer().Resolve <IBrowserService> (); _dispatchService = IocContainer.GetContainer().Resolve <IDispatcherService> (); _logger = IocContainer.GetContainer().Resolve <ILogger>(); _phoneService = IocContainer.GetContainer().Resolve <IPhoneService> (); _mapService = IocContainer.GetContainer().Resolve <IMapService> (); _connectivityService = IocContainer.GetContainer().Resolve <IConnectivityService>(); _emailService = IocContainer.GetContainer().Resolve <IEmailService> (); }
public ServicesViewModel(INavigationService navigationService, ISettingsService settingsService, IHudService hudService, ISadmApiService apiService) : base(navigationService, settingsService, hudService, apiService) { ShowServiceCommand = new AsyncCommand(ShowServiceAsync); ServiceList = new ObservableCollection <SadmService> { new SadmService { Icon = "document.png", Name = AppResources.GenerateReport.ToUpper(), Description = AppResources.GenerateReportDesciption }, new SadmService { Icon = "bigclock.png", Name = AppResources.RequestStatus.ToUpper(), Description = AppResources.RequestStatusDescription } }; }
public PaymentBanamexViewModel(ISadmApiService sadmApiService, INavigationService navigationService, ISettingsService settingsService, IHudService hudService, ISadmApiService apiService) : base(navigationService, settingsService, hudService, apiService) { this.sadmApiService = sadmApiService; }