Exemplo n.º 1
0
 public MainViewModel(IMvxNavigationService navigationService, IMySeriesDataService dataService, IAudioRecorderService recorderService, ICognitiveService cognitiveService)
 {
     this.navigationService = navigationService;
     this.exploreViewModel  = new ExploreViewModel(navigationService, dataService);
     this.upcomingViewModel = new UpcomingViewModel(dataService);
     this.profileViewModel  = new ProfileViewModel(recorderService, cognitiveService);
 }
Exemplo n.º 2
0
        public UpcomingViewModel(IMySeriesDataService dataService)
        {
            this.dataService = dataService;

            Task.Run(async() =>
            {
                this.token = await this.dataService.TryGetTokenAsync("*****@*****.**", "MyPassword!");
            }).Wait();
        }
Exemplo n.º 3
0
 public ExploreViewModel(IMvxNavigationService navigationService, IMySeriesDataService dataService)
 {
     this.navigationService = navigationService;
     this.dataService       = dataService;
 }