Beispiel #1
0
 /// <summary>
 /// The only public constructor available to the Video class. Must declare all relevant
 /// information at the time of instantiation.
 /// </summary>
 /// <param name="name">The Title or Name of a TV Show or Movie</param>
 /// <param name="genre">The Genre to which this video most belongs</param>
 /// <param name="description">A brief description or plot summary</param>
 /// <param name="year">The year in which the video was first released.
 /// For TV Shows, the year in which the first episode of season 1 aired.</param>
 /// <param name="type">The type of video. i.e. TypeOfVideo.TVShow or TypeOfVideo.Movie</param>
 public Video(string name, string genre, string description, ushort year, TypeOfVideo type)
 {
     Title = new string(name.ToCharArray());
     Genre = genre;
     Description = description;
     Year = year;
     Type = type;
 }
Beispiel #2
0
 /// <summary>
 /// Create an empty library for storing videos of a specific type
 /// </summary>
 /// <param name="type">Denotes which type of video is stored in this library.</param>
 public Library(TypeOfVideo type)
 {
     Type = type;
     Videos = new List<Video>();
 }