namespace VideoBrowser.Core { using System.Collections.Generic; /// /// Defines the /// public class PlayList { #region Constructors /// /// Initializes a new instance of the class. /// /// The id /// The name /// The onlineCount public PlayList(string id, string name, int onlineCount) { this.Id = id; this.Name = name; this.OnlineCount = onlineCount; this.Videos = new List(); } /// /// Initializes a new instance of the class. /// /// The id /// The name /// The onlineCount /// The videos public PlayList(string id, string name, int onlineCount, List videos) { this.Id = id; this.Name = name; this.OnlineCount = onlineCount; this.Videos = videos; } #endregion Constructors #region Properties /// /// Gets the play list ID. /// public string Id { get; private set; } /// /// Gets the playlist name. /// public string Name { get; private set; } /// /// Gets or sets the OnlineCount /// Gets the expected video count. Expected because some videos might not be included because of errors. /// Look at 'Playlist.Videos' property for actual count. /// public int OnlineCount { get; set; } /// /// Gets the videos in the playlist. Videos with errors not included, for example country restrictions. /// public List Videos { get; private set; } #endregion Properties } }