Ejemplo n.º 1
0
        private static List <IMDBResult> GetResultSet(IMDBTypes SpecialType, HomePageType homePage = HomePageType.MoviesInTheaters)
        {
            switch (SpecialType)
            {
            case IMDBTypes.ComingSoon: return(GetMoviesComingSoon());

            case IMDBTypes.MostPopularMovies: return(GetMostPopularMovies());

            case IMDBTypes.MostPopularTV: return(GetMostPopularTVShows());

            case IMDBTypes.NewDVDReleases: return(GetNewDVDReleases());

            case IMDBTypes.Newest: return(GetNewestMovies(homePage));

            case IMDBTypes.TopRatedMovies: return(GetTopRatedMovies());

            case IMDBTypes.TopRatedTV: return(GetTopRatedTVShows());

            default: throw new NotImplementedException($"{SpecialType} has not been implemented");
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// IMDBTypes.ComingSoon Gets movies coming soon
 /// IMDBTypes.MostPopularMovies Gets most popular movies determined by IMDB users
 /// IMDBTypes.MostPopularTV Gets most popular TV shows determined by IMDB users
 /// IMDBTypes.NewDVDReleases Gets the new and recent DVD releases
 /// IMDBTypes.Newest Gets the newest movies. Pass in HomePageType to get movies in theaters or movies soon to be released to theaters.
 /// IMDBTypes.TopRatedMovies Gets the top rated movies of all time
 /// IMDBTypes.TopRatedTV Gets the top rated TV shows of all time
 /// </summary>
 /// <param name="SpecialType"></param>
 /// <returns></returns>
 public List <IMDBResult> GetSpecialItems(IMDBTypes SpecialType) => GetResultSet(SpecialType);
Ejemplo n.º 3
0
 /// <summary>
 /// HomePageType is only used when returning IMDBTypes.Newest
 /// </summary>
 /// <param name="SpecialType"></param>
 /// <param name="homePage"></param>
 /// <returns></returns>
 public List <IMDBResult> GetSpecialItems(IMDBTypes SpecialType, HomePageType homePage) => GetResultSet(SpecialType, homePage);