public MainPageViewModel(IDeviceGestureService gestureService, INavigationService navigationService, ITwitchRepository twitchRepository, IPageDialogService dialogService, ISessionStateService sessionStateService) : base(gestureService, navigationService, sessionStateService) { _twitchRepository = twitchRepository; _dialogService = dialogService; QueryCommand = new DelegateCommand(Query); RefreshFeaturedGamesCommand = new DelegateCommand(async() => await RefreshFeaturedGames()); GameClickedCommand = new DelegateCommand <FeaturedGame>((FeaturedGame game) => { _navigationService.Navigate("GameDetail", game.GameObject.Name); // parameter: game name. }); }
public LiveStreamPageViewModel(IDeviceGestureService gestureService, INavigationService navigationService, ITwitchRepository twitchRepository, ISessionStateService sessionStateService) : base(gestureService, navigationService, sessionStateService) { _twitchRepository = twitchRepository; AvailableBitrates = new ObservableCollection <BitrateModel>(); PlayOrPauseCommand = new DelegateCommand(PlayOrPause); }
public GameDetailPageViewModel(IDeviceGestureService gestureService, INavigationService navigationService, ITwitchRepository twitchRepository, IPageDialogService dialogService, ISessionStateService sessionStateService) : base(gestureService, navigationService, sessionStateService) { _twitchRepository = twitchRepository; _dialogService = dialogService; }
public Twitch(TwitchClient twitchClient, ITwitchRepository twitchRepository) { _twitchClient = twitchClient; _twitchRepository = twitchRepository; }
public HomeController(ILogger <HomeController> logger, ITwitchRepository twitchRepository, ITwitchService twitchService) { _logger = logger; _twitchRepository = twitchRepository; _twitchService = twitchService; }