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