private void ShowAllShows()
        {
            _console.Clear();

            List <Show> shows = new List <Show>();

            shows = _streamingRepository.GetAllShows();
            foreach (Show content in shows)
            {
                _console.WriteLine($"Title: {content.Title}\n" +
                                   $"Genre: {content.Genre}\n" +
                                   $"Description: {content.Description}\n" +
                                   $"Star Rating: {content.StarRating}\n" +
                                   $"Maturity Rating: {content.MaturityRating}\n" +
                                   $"Language: {content.Language}\n" +
                                   $"Type Of Streaming Quality: {content.TypeOfStreamingQuality}\n" +
                                   $"Is Family Friendly: {content.IsFamilyFriendly}\n" +
                                   $"Average Run Time: {content.AverageRunTime} minutes\n" +
                                   $"Episode Count: {content.EpisodeCount}\n" +
                                   $"Season Count: {content.SeasonCount}\n");

                foreach (Episode episode in content.Episodes)
                {
                    _console.WriteLine(episode.Title); // no episodes have been declared yet so nothing will be displayed for this instance
                }
            }
            _console.WriteLine("Press any key to continue.");
            _console.ReadKey();
        }
Beispiel #2
0
        //Display all shows
        //make a list ->
        //add to the list (shows)
        //Display the shows
        private void ShowAllShows()
        {
            List <Show> shows = new List <Show>();

            shows = _streamingRepo.GetAllShows();
            foreach (Show content in shows)
            {
                Console.WriteLine($"Title: {content.Title} \n" +
                                  $"Genre: {content.Genre} \n" +
                                  $"Star Rating: {content.StarRating} \n" +
                                  $"What is it about?{content.Description} \n" +
                                  $"Words: {content.Language} \n" +
                                  $"Streaming Quality: {content.TypeOfStreamingQuality} \n" +
                                  $"Maturity Rating {content.MaturityRating} \n" +
                                  $"Is family friendly: {content.IsFamilyFriendly} \n" +
                                  $"Runtime: {content.AverageRunTime} \n" +
                                  $"Episode count: {content.EpisodeCount} \n" +
                                  $"Season Count: {content.SeasonCount} \n" +
                                  $"Episode List: ");
                foreach (Episode episode in content.Episodes)
                {
                    Console.WriteLine(episode.Title);
                }
            }
            Console.WriteLine("Press any key to continue...");
            Console.ReadKey();
        }
Beispiel #3
0
        // Display all Shows
        // Make a list -> add to the list (shows)
        // Display the shows

        private void ShowAllShows()
        {
            List <Show> shows = new List <Show>();

            shows = _streamingRepo.GetAllShows();
            foreach (Show content in shows)
            {
                Console.WriteLine($"Title: {content.Title}\n" +
                                  $"Genre: {content.Genre}\n" +
                                  $"Stars: {content.StarRating}\n" +
                                  $"Description: {content.Description}\n" +
                                  $"Language: {content.TypeOfLanguage}\n" +
                                  $"Maturity Rating: {content.TypeOfMaturityRating}\n" +
                                  $"Quality: {content.TypeOfStreamingQualityType}\n" +
                                  $"Family Friendly? {content.IsFamilyFriendly}\n" +
                                  $"Average Run Time: {content.AverageRunTime}\n" +
                                  $"Episode Count: {content.EpisodeCount}\n" +
                                  $"Season Count: {content.SeasonCount}\n");
                foreach (Episode episode in content.Episodes)
                {
                    Console.WriteLine($"{episode.Title}");
                }
            }
            Console.WriteLine("Press any key to continue...");
            Console.ReadKey();
        }
Beispiel #4
0
        private void DisplayAllShows()
        {
            Console.Clear();
            List <Show> directory = _streamingRepo.GetAllShows();

            //go through each item of our content and display its properties
            foreach (Show show in directory)
            {
                Console.WriteLine($"Title: {show.Title}\n" +
                                  $"Description: {show.Description}\n" +
                                  $"Stars: {show.StarRating}\n" +
                                  $"Genre: {show.Genre}\n" +
                                  $"Language: {show.Language}\n" +
                                  $"Quality: {show.TypeOfStreamingQuality}\n" +
                                  $"Maturity: {show.MaturityRating}\n" +
                                  $"Family Friendly: {show.IsFamilyFriendly}\n" +
                                  $"Average Run Time: {show.AverageRunTime}\n" +
                                  $"Episodes: {show.EpisodeCount}\n" +
                                  $"Seasons: {show.SeasonCount}\n" +
                                  $"");
            }

            Console.WriteLine("Press any key to continue");
            Console.ReadKey();
        }
        private void ShowAllShows()
        {
            Console.Clear();
            //Get the items from our fake database
            List <Show> listOfContent = _streamingRepo.GetAllShows();

            //Take Each item and display property values
            foreach (Show content in listOfContent)
            {
                DisplaySimple(content);
            }
            //Puase the program so the user can see the printed objects
            Console.WriteLine("Press any key to continue");
            Console.ReadKey();
            Console.Clear();
            //GOAL: Show all items in our fake database
        }