private string GetTrendingRelativeUrl(TorrentPopularityRange movieRangeType)
        {
            if (movieRangeType == TorrentPopularityRange.Today)
            {
                return("trending-week");
            }

            return("trending");
        }
Exemplo n.º 2
0
        private string GetMoviesRelativeUrl(TorrentPopularityRange movieRangeType)
        {
            if (movieRangeType == TorrentPopularityRange.Today)
            {
                return("trending/d/movies/");
            }

            return("trending/w/movies/");
        }
Exemplo n.º 3
0
        private string GetPopularPath(TorrentPopularityRange popularRangeType)
        {
            if (popularRangeType == TorrentPopularityRange.Today)
            {
                return("popular-games");
            }

            return("popular-games-week");
        }
Exemplo n.º 4
0
        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)));
 }
Exemplo n.º 6
0
 public Task <IReadOnlyList <SearchResultItem> > GetAsync(TorrentPopularityRange movieRangeType)
 {
     return(Get(GetMoviesRelativeUrl(movieRangeType)));
 }
Exemplo n.º 7
0
 public Task <IReadOnlyList <SearchResultItem> > GetTrending(TorrentPopularityRange movieRangeType)
 {
     return(_trendingTorrentsProvider.GetAsync(movieRangeType));
 }
Exemplo n.º 8
0
 public Task <IReadOnlyList <SearchResultItem> > GetPopularForeign(TorrentPopularityRange movieRangeType)
 {
     return(_popularMovieProvider.GetForeignMoviesAsync(movieRangeType));
 }
Exemplo n.º 9
0
 public Task <IReadOnlyList <SearchResultItem> > GetPopular(TorrentPopularityRange movieRangeType)
 {
     return(_populairGamesProvider.GetAsync(movieRangeType));
 }
Exemplo n.º 10
0
 public Task <IReadOnlyList <SearchResultItem> > GetForeignMoviesAsync(TorrentPopularityRange movieRangeType)
 {
     return(Get(GetPopularForeignPath(movieRangeType)));
 }