using System.Collections.Generic; namespace MediaBrowser.Model.Channels { public class ChannelFeatures { /// /// Gets or sets a value indicating whether this instance can search. /// /// true if this instance can search; otherwise, false. public bool CanSearch { get; set; } /// /// Gets or sets the media types. /// /// The media types. public List MediaTypes { get; set; } /// /// Gets or sets the content types. /// /// The content types. public List ContentTypes { get; set; } /// /// Represents the maximum number of records the channel allows retrieving at a time /// public int? MaxPageSize { get; set; } /// /// Gets or sets the default sort orders. /// /// The default sort orders. public List DefaultSortFields { get; set; } /// /// Indicates if a sort ascending/descending toggle is supported or not. /// public bool SupportsSortOrderToggle { get; set; } /// /// Gets or sets a value indicating whether the channel content is just a single media list. /// /// true if this instance is single media list; otherwise, false. public bool IsSingleMediaList { get; set; } public ChannelFeatures() { MediaTypes = new List(); ContentTypes = new List(); DefaultSortFields = new List(); } } public enum ChannelItemSortField { Name = 0, CommunityRating = 1, ReleaseDate = 2, Runtime = 3, CommunityMostWatched = 4, UserPlayCount = 5 } }