private string GetTrendingRelativeUrl(TorrentPopularityRange movieRangeType) { if (movieRangeType == TorrentPopularityRange.Today) { return("trending-week"); } return("trending"); }
private string GetMoviesRelativeUrl(TorrentPopularityRange movieRangeType) { if (movieRangeType == TorrentPopularityRange.Today) { return("trending/d/movies/"); } return("trending/w/movies/"); }
private string GetPopularPath(TorrentPopularityRange popularRangeType) { if (popularRangeType == TorrentPopularityRange.Today) { return("popular-games"); } return("popular-games-week"); }
private string GetPopularForeignPath(TorrentPopularityRange movieRangeType) { if (movieRangeType == TorrentPopularityRange.Today) { return("popular-foreign-movies"); } return("popular-foreign-movies-week"); }
public Task <IReadOnlyList <SearchResultItem> > GetAsync(TorrentPopularityRange popularityRange) { return(Get(GetTrendingRelativeUrl(popularityRange))); }
public Task <IReadOnlyList <SearchResultItem> > GetAsync(TorrentPopularityRange movieRangeType) { return(Get(GetMoviesRelativeUrl(movieRangeType))); }
public Task <IReadOnlyList <SearchResultItem> > GetTrending(TorrentPopularityRange movieRangeType) { return(_trendingTorrentsProvider.GetAsync(movieRangeType)); }
public Task <IReadOnlyList <SearchResultItem> > GetPopularForeign(TorrentPopularityRange movieRangeType) { return(_popularMovieProvider.GetForeignMoviesAsync(movieRangeType)); }
public Task <IReadOnlyList <SearchResultItem> > GetPopular(TorrentPopularityRange movieRangeType) { return(_populairGamesProvider.GetAsync(movieRangeType)); }
public Task <IReadOnlyList <SearchResultItem> > GetForeignMoviesAsync(TorrentPopularityRange movieRangeType) { return(Get(GetPopularForeignPath(movieRangeType))); }