public PlanetsViewModel( IPlanetsService planetsService, IMvxNavigationService navigationService) { _planetsService = planetsService; _navigationService = navigationService; Planets = new MvxObservableCollection <IPlanet>(); PlanetSelectedCommand = new MvxAsyncCommand <IPlanet>(PlanetSelected); FetchPlanetCommand = new MvxCommand( () => { if (!string.IsNullOrEmpty(_nextPage)) { FetchPlanetsTask = MvxNotifyTask.Create(LoadPlanets); RaisePropertyChanged(() => FetchPlanetsTask); } }); RefreshPlanetsCommand = new MvxCommand(RefreshPlanets); }
public StarWarsResidentsService(HttpClient httpClient, IMapper mapper, IPlanetsService planetsService) { _httpClient = httpClient; _mapper = mapper; _planetsService = planetsService; }
public PlanetsViewModel(INavigationService navigationService, IPageDialogService pageDialogService, IPlanetsService planetsService) : base(navigationService, pageDialogService) { _planetsService = planetsService; GetApp(); }
public PlanetsController(IPlanetsService planetService) { _planetService = planetService; }