aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Channels
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-05-27 13:09:48 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-05-27 13:09:48 -0400
commit680ffeebf7bc4b5f07daa360ba4b89526cd2db9f (patch)
tree6871c5f64731539aaeee14ac3f8f6d97b807f6ee /MediaBrowser.Model/Channels
parent4c87979cac4df6560145b96d440aeba967466951 (diff)
updated nuget
Diffstat (limited to 'MediaBrowser.Model/Channels')
-rw-r--r--MediaBrowser.Model/Channels/ChannelFeatures.cs34
-rw-r--r--MediaBrowser.Model/Channels/ChannelMediaType.cs9
2 files changed, 37 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
+ }
}
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