Esempio n. 1
0
        private void CreateNewShow()
        {
            Console.WriteLine("Enter new show title:");
            string title = Console.ReadLine();

            GenreMenu();
            int genreInput = ParseIntput();

            Genre genre = _streamingContentRepo.GetGenreFromInt(genreInput);

            Console.WriteLine("Enter show runtime in minutes: ");
            float length = ParseFloatPut();

            StreamingContent newShow = new StreamingContent(title, genre, length);

            _streamingContentRepo.AddContentToList(newShow);

            Console.WriteLine($"\"{title}\" added to list.");
            Console.ReadLine();
        }
Esempio n. 2
0
 public void RemoveContentFromList(StreamingContent content)
 {
     _listOfContent.Remove(content);
 }
Esempio n. 3
0
 public void EnqueueContent(StreamingContent content)
 {
     _queueOfContent.Enqueue(content);
 }
Esempio n. 4
0
 public void AddContentToList(StreamingContent content)
 {
     _listOfContent.Add(content);
 }