Beispiel #1
0
 public SummonerViewModel(ISummonerApiService summonerService, IPageDialogService alertService, INavigationService navigationService) : base(alertService)
 {
     GetSummonerCommand    = new DelegateCommand(GetSummonerAsync);
     SummonerDetailCommand = new Command(async() => await OnSummonerDetailTapped());
     _summonerApiService   = summonerService;
     _navigationService    = navigationService;
 }
Beispiel #2
0
 public MainViewModel()
 {
     summonerApiService = new SummonerApiService();
     GetSummonerCommand = new Command(GetSummonerAsync);
 }