Пример #1
0
 public DetailsPageViewModel(IMarvelService marvelService,
                             IUserDialogs userDialogs)
 {
     _serviceMarvel = marvelService;
     _userDialogs   = userDialogs;
     DataSource     = new ObservableCollection <Comic>();
 }
Пример #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;
 }
Пример #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);
        }
Пример #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;
 }
Пример #5
0
 public LoginViewModel(INavigator navigator, IMarvelService servicio, IPage page) : base(navigator, servicio, page)
 {
     LoginCommand = new Command(Login);
     Titulo       = "Marvel";
 }
Пример #6
0
 public HomeController(IMarvelService marvelService, IHistorySearchService historySearchService)
 {
     _marvelService        = marvelService;
     _historySearchService = historySearchService;
 }
Пример #7
0
 public MarvelController(IMarvelService marvelService, IDataHandler dataHandler)
 {
     _marvelService = marvelService;
     _dataHandler   = dataHandler;
 }
Пример #8
0
 public BaseViewModel(INavigator navigator, IMarvelService servicio, IPage page)
 {
     _navigator = navigator;
     _servicio  = servicio;
     _page      = page;
 }
Пример #9
0
 public MainViewModel(INavigationService navigationService,
                      IPageDialogService pageDialogService, IMarvelService marvelService) : base(navigationService, pageDialogService)
 {
     Characters    = new ObservableCollection <Character>();
     MarvelService = marvelService;
 }
Пример #10
0
 public MarvelController(IMarvelService s)
 {
     marvelService = s;
 }
Пример #11
0
 public PersonajeDetailViewModel(INavigator navigator, IMarvelService servicio, IPage page) : base(navigator, servicio, page)
 {
 }