Пример #1
0
        public override void Select()
        {
            Recommender.Update("genre");
            Console.Clear();

            foreach (var genre in User.Preferences["genre"])
            {
                Console.WriteLine($"{genre.Key} | {genre.Value[(int)UserRating.Weight]}");
            }

            Console.ReadKey();
        }
        public override void Select()
        {
            Recommender.Update("actors");
            Console.Clear();

            foreach (var actor in User.Preferences["actors"])
            {
                Console.WriteLine($"{actor.Key} | {actor.Value[(int)UserRating.Weight]}");
            }

            Console.ReadKey();
        }
Пример #3
0
        public override void Select()
        {
            Console.Clear();
            MenuItems.Clear();
            Recommender.GetRecommendedMovies();
            Console.Clear();
            foreach (var movie in Recommender.MovieRatingsWeight.Take(10))
            {
                AddMenuItem(movie.Key);
            }

            base.Select();
        }
Пример #4
0
        public Startmenu(string title) : base(title)
        {
            AddMenuItem(
                new RecommendedMovies("Your recommendations"),
                new MovieMenu("View all movies"),
                new MovieMenu("Rate movies", false),
                new ShowRatedMovies("Your rated movies"),
                new SearchMenu("Search"));

            if (User.DebugState)
            {
                AddMenuItem(
                    new TopGenre("Top Genres"),
                    new TopActors("Top Actors"),
                    new TopDirector("Top Directors"));

                Recommender.Update("genre", "directors", "actors");
            }
        }