Beispiel #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();
        }
Beispiel #2
0
 public void RemoveContentFromList(StreamingContent content)
 {
     _listOfContent.Remove(content);
 }
Beispiel #3
0
 public void EnqueueContent(StreamingContent content)
 {
     _queueOfContent.Enqueue(content);
 }
Beispiel #4
0
 public void AddContentToList(StreamingContent content)
 {
     _listOfContent.Add(content);
 }