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;
 }
예제 #4
0
 public Twitch(TwitchClient twitchClient, ITwitchRepository twitchRepository)
 {
     _twitchClient     = twitchClient;
     _twitchRepository = twitchRepository;
 }
예제 #5
0
 public HomeController(ILogger <HomeController> logger, ITwitchRepository twitchRepository, ITwitchService twitchService)
 {
     _logger           = logger;
     _twitchRepository = twitchRepository;
     _twitchService    = twitchService;
 }