async Task LoadSimilar() { var similar = await Task.Run(() => TMDBService.GetShowList($"/tv/{Id}/similar", new Dictionary <string, string>())); foreach (var v in similar.ImagesFirst()) { Similar.Add(v); } }
async Task LoadShowList(ObservableCollection <Show> List, string Path, Dictionary <string, string> Query) { var results = await Task.Run(() => TMDBService.GetShowList(Path, Query, 1, 1)); foreach (var v in results) { List.Add(v); } }
async Task LoadRecommendations() { var recommendations = await Task.Run(() => TMDBService.GetShowList($"/tv/{Id}/recommendations", new Dictionary <string, string>())); foreach (var v in recommendations.ImagesFirst()) { Recommendations.Add(v); } }
public async Task LoadData() { LoadedPages++; var results = await Task.Run(() => TMDBService.GetShowList(Path, Query, LoadedPages, 1)); if (results.Count != 0) { LoadedMore(); } foreach (var v in results) { Shows.Add(v); } }