Ejemplo n.º 1
0
 public MyPodcastViewModel(INavigationService navigationService, ILog log, IPodcastMetadaRepository podcastMetadaRepository,
                           ISearchService searchService)
 {
     _navigationService = navigationService;
     _log = log;
     _podcastMetadaRepository  = podcastMetadaRepository;
     _searchService            = searchService;
     LoadPodcastDetailsCommand = new Command <PodcastMetadata>(async metadata => await LoadPodcastDetails(metadata));
 }
Ejemplo n.º 2
0
 public PodcastDetailsViewModel(INavigationService navigationService, ISearchService searchService,
                                ILog log, IPodcastMetadaRepository podcastMetadaRepository)
 {
     _navigationService = navigationService;
     _searchService     = searchService;
     _log = log;
     _podcastMetadaRepository    = podcastMetadaRepository;
     RefreshCommand              = new Command(Refresh);
     LoadEpisodesCommand         = new Command(LoadEpisodes);
     SubscribeToPodcastCommand   = new Command(async() => await SubscribeToPodcast());
     UnSubscribeToPodcastCommand = new Command(async() => await UnSubscribeToPodcast());
 }