From 680ffeebf7bc4b5f07daa360ba4b89526cd2db9f Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 27 May 2014 13:09:48 -0400 Subject: updated nuget --- MediaBrowser.Model/Channels/ChannelFeatures.cs | 34 ++++++++++++++++++++----- MediaBrowser.Model/Channels/ChannelMediaType.cs | 9 +++++++ 2 files changed, 37 insertions(+), 6 deletions(-) (limited to 'MediaBrowser.Model') 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 @@ -10,12 +10,6 @@ namespace MediaBrowser.Model.Channels /// true if this instance can search; otherwise, false. public bool CanSearch { get; set; } - /// - /// Gets or sets a value indicating whether this instance can index all media. - /// - /// true if this instance can index all media; otherwise, false. - public bool CanGetAllMedia { get; set; } - /// /// Gets or sets the media types. /// @@ -33,11 +27,39 @@ namespace MediaBrowser.Model.Channels /// 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 + } } diff --git a/MediaBrowser.Model/Channels/ChannelMediaType.cs b/MediaBrowser.Model/Channels/ChannelMediaType.cs index 102cb6644..cf3239c9b 100644 --- a/MediaBrowser.Model/Channels/ChannelMediaType.cs +++ b/MediaBrowser.Model/Channels/ChannelMediaType.cs @@ -8,4 +8,13 @@ Photo = 2 } + + public enum ChannelFolderType + { + Container = 0, + + MusicAlbum = 1, + + PhotoAlbum = 2 + } } \ No newline at end of file -- cgit v1.2.3