private async void LoadMore() { var videos = await YoutubeService.ListarVideosYoutube(Search, TokenNextPage); if (videos.items != null && videos.items.Any()) { foreach (var item in videos.items) { Videos.Add(item); } TokenNextPage = videos.nextPageToken; } }
private async void SearchVideos() { if (!string.IsNullOrWhiteSpace(Search)) { Videos = new ObservableCollection <Item>(); var videos = await YoutubeService.ListarVideosYoutube(Search); if (videos != null && videos.items != null && videos.items.Any()) { Videos = new ObservableCollection <Item>(videos.items); TokenNextPage = videos.nextPageToken; } } }