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.
            });
        }
Example #2
0
        public MainPageViewModel(
            INavigationService navigationService,
            IDeviceGestureService deviceGestureService,
            ISessionStateService sessionStateService)
        {
            this.navigationService    = navigationService;
            this.deviceGestureService = deviceGestureService;
            this.sessionStateService  = sessionStateService;

            this.ItemInfoText = String.Empty;

            this.ItemsList = new ObservableCollection <ListItem>();
            for (int i = 0; i < 10; i++)
            {
                this.ItemsList.Add(new ListItem()
                {
                    Id = i, Name = String.Format("くまー#{0}", i)
                });
            }
            this.SelectedIndex = -1;

            this.SelectionChangedCommand = new DelegateCommand(() => SelectionChanged());
        }
 public LiveStreamPageViewModel(IDeviceGestureService gestureService, INavigationService navigationService, ITwitchRepository twitchRepository, ISessionStateService sessionStateService) : base(gestureService, navigationService, sessionStateService)
 {
     _twitchRepository  = twitchRepository;
     AvailableBitrates  = new ObservableCollection <BitrateModel>();
     PlayOrPauseCommand = new DelegateCommand(PlayOrPause);
 }
Example #4
0
 public MainPageViewModel(INavigationService ns, IDeviceGestureService ds)
 {
     this.NavigationService    = ns;
     this.DeviceGestureService = ds;
 }
Example #5
0
 public ViewModel(IDeviceGestureService gestureService, INavigationService navigationService, ISessionStateService sessionStateService)
 {
     _gestureService      = gestureService;
     _navigationService   = navigationService;
     _sessionStateService = sessionStateService;
 }
 public GameDetailPageViewModel(IDeviceGestureService gestureService, INavigationService navigationService, ITwitchRepository twitchRepository, IPageDialogService dialogService, ISessionStateService sessionStateService) : base(gestureService, navigationService, sessionStateService)
 {
     _twitchRepository = twitchRepository;
     _dialogService    = dialogService;
 }
Example #7
0
 public MainPageViewModel(INavigationService ns, IDeviceGestureService ds)
 {
     this.NavigationService = ns;
     this.DeviceGestureService = ds;
 }