diff options
Diffstat (limited to 'MediaBrowser.Model/Channels/ChannelFeatures.cs')
| -rw-r--r-- | MediaBrowser.Model/Channels/ChannelFeatures.cs | 34 |
1 files changed, 28 insertions, 6 deletions
diff --git a/MediaBrowser.Model/Channels/ChannelFeatures.cs b/MediaBrowser.Model/Channels/ChannelFeatures.cs index dbfab87db..d3af8dadf 100644 --- a/MediaBrowser.Model/Channels/ChannelFeatures.cs +++ b/MediaBrowser.Model/Channels/ChannelFeatures.cs @@ -11,12 +11,6 @@ namespace MediaBrowser.Model.Channels public bool CanSearch { get; set; } /// <summary> - /// Gets or sets a value indicating whether this instance can index all media. - /// </summary> - /// <value><c>true</c> if this instance can index all media; otherwise, <c>false</c>.</value> - public bool CanGetAllMedia { get; set; } - - /// <summary> /// Gets or sets the media types. /// </summary> /// <value>The media types.</value> @@ -33,11 +27,39 @@ namespace MediaBrowser.Model.Channels /// </summary> public int? MaxPageSize { get; set; } + /// <summary> + /// Gets or sets the default sort orders. + /// </summary> + /// <value>The default sort orders.</value> + public List<ChannelItemSortField> DefaultSortFields { get; set; } + + /// <summary> + /// Indicates if a sort ascending/descending toggle is supported or not. + /// </summary> + public bool SupportsSortOrderToggle { get; set; } + + /// <summary> + /// Gets or sets a value indicating whether the channel content is just a single media list. + /// </summary> + /// <value><c>true</c> if this instance is single media list; otherwise, <c>false</c>.</value> + public bool IsSingleMediaList { get; set; } + public ChannelFeatures() { MediaTypes = new List<ChannelMediaType>(); ContentTypes = new List<ChannelMediaContentType>(); + + DefaultSortFields = new List<ChannelItemSortField>(); } } + public enum ChannelItemSortField + { + Name = 0, + CommunityRating = 1, + ReleaseDate = 2, + Runtime = 3, + CommunityMostWatched = 4, + UserPlayCount = 5 + } } |
