Ejemplo n.º 1
0
 public DetailsPageViewModel(IMarvelService marvelService,
                             IUserDialogs userDialogs)
 {
     _serviceMarvel = marvelService;
     _userDialogs   = userDialogs;
     DataSource     = new ObservableCollection <Comic>();
 }
Ejemplo n.º 2
0
 public StanLeeBot(ILogger <StanLeeBot> logger, IApplicationLifetime appLifetime, ILoggerFactory loggerFactory, IAppSettings appSettings, IMarvelService marvelService)
 {
     _logger        = logger;
     _appLifetime   = appLifetime;
     _loggerFactory = loggerFactory;
     _appSettings   = appSettings;
     _marvelService = marvelService;
 }
Ejemplo n.º 3
0
        public MainPageViewModel(INavigationService navigationService,
                                 IMarvelService marvelService)
        {
            _navigationService = navigationService;
            _marvelService     = marvelService;

            DataSource = new ObservableCollection <Character>();

            SearchCommand     = new DelegateCommand(async() => await SearchCommandHandler());
            ClearCommand      = new DelegateCommand(async() => await ClearCommandHandler());
            ItemTappedCommand = new DelegateCommand <Character>(ItemTappedCommandHandler);
            LoadDataCommand   = new DelegateCommand(async() => await LoadDataCommandHandler());

            LoadDataCommand?.Execute(null);
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Injeção de dependência
 /// </summary>
 /// <param name="marvelService"></param>
 /// <param name="configuration"></param>
 /// <param name="webHostEnvironment"></param>
 public MarvelController(IMarvelService marvelService, IConfiguration configuration, IWebHostEnvironment webHostEnvironment)
 {
     MarvelService      = marvelService;
     Configuration      = configuration;
     WebHostEnvironment = webHostEnvironment;
 }
Ejemplo n.º 5
0
 public LoginViewModel(INavigator navigator, IMarvelService servicio, IPage page) : base(navigator, servicio, page)
 {
     LoginCommand = new Command(Login);
     Titulo       = "Marvel";
 }
Ejemplo n.º 6
0
 public HomeController(IMarvelService marvelService, IHistorySearchService historySearchService)
 {
     _marvelService        = marvelService;
     _historySearchService = historySearchService;
 }
Ejemplo n.º 7
0
 public MarvelController(IMarvelService marvelService, IDataHandler dataHandler)
 {
     _marvelService = marvelService;
     _dataHandler   = dataHandler;
 }
Ejemplo n.º 8
0
 public BaseViewModel(INavigator navigator, IMarvelService servicio, IPage page)
 {
     _navigator = navigator;
     _servicio  = servicio;
     _page      = page;
 }
Ejemplo n.º 9
0
 public MainViewModel(INavigationService navigationService,
                      IPageDialogService pageDialogService, IMarvelService marvelService) : base(navigationService, pageDialogService)
 {
     Characters    = new ObservableCollection <Character>();
     MarvelService = marvelService;
 }
Ejemplo n.º 10
0
 public MarvelController(IMarvelService s)
 {
     marvelService = s;
 }
Ejemplo n.º 11
0
 public PersonajeDetailViewModel(INavigator navigator, IMarvelService servicio, IPage page) : base(navigator, servicio, page)
 {
 }