aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Channels
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-05-19 15:51:56 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-05-19 15:51:56 -0400
commitad3c30c14535780fcbd11b049603991e8d3cfe9e (patch)
tree78b02746ba417645141cc27b06675941d2bfd5e6 /MediaBrowser.Model/Channels
parentb98be6d7f1627b8031288e4e8785d5ab9072fb29 (diff)
support sending channel paging direct to the provider
Diffstat (limited to 'MediaBrowser.Model/Channels')
-rw-r--r--MediaBrowser.Model/Channels/ChannelInfo.cs35
-rw-r--r--MediaBrowser.Model/Channels/ChannelMediaContentType.cs17
-rw-r--r--MediaBrowser.Model/Channels/ChannelMediaType.cs9
3 files changed, 61 insertions, 0 deletions
diff --git a/MediaBrowser.Model/Channels/ChannelInfo.cs b/MediaBrowser.Model/Channels/ChannelInfo.cs
new file mode 100644
index 0000000000..2ebfb432a7
--- /dev/null
+++ b/MediaBrowser.Model/Channels/ChannelInfo.cs
@@ -0,0 +1,35 @@
+using System.Collections.Generic;
+
+namespace MediaBrowser.Model.Channels
+{
+ public class ChannelInfo
+ {
+ /// <summary>
+ /// Gets the home page URL.
+ /// </summary>
+ /// <value>The home page URL.</value>
+ public string HomePageUrl { get; set; }
+
+ /// <summary>
+ /// Gets or sets a value indicating whether this instance can search.
+ /// </summary>
+ /// <value><c>true</c> if this instance can search; otherwise, <c>false</c>.</value>
+ public bool CanSearch { get; set; }
+
+ public List<ChannelMediaType> MediaTypes { get; set; }
+
+ public List<ChannelMediaContentType> ContentTypes { get; set; }
+
+ /// <summary>
+ /// Represents the maximum number of records the channel allows retrieving at a time
+ /// </summary>
+ public int? MaxPageSize { get; set; }
+
+ public ChannelInfo()
+ {
+ MediaTypes = new List<ChannelMediaType>();
+ ContentTypes = new List<ChannelMediaContentType>();
+ }
+ }
+
+}
diff --git a/MediaBrowser.Model/Channels/ChannelMediaContentType.cs b/MediaBrowser.Model/Channels/ChannelMediaContentType.cs
new file mode 100644
index 0000000000..cb9f440704
--- /dev/null
+++ b/MediaBrowser.Model/Channels/ChannelMediaContentType.cs
@@ -0,0 +1,17 @@
+namespace MediaBrowser.Model.Channels
+{
+ public enum ChannelMediaContentType
+ {
+ Clip = 0,
+
+ Podcast = 1,
+
+ Trailer = 2,
+
+ Movie = 3,
+
+ Episode = 4,
+
+ Song = 5
+ }
+} \ No newline at end of file
diff --git a/MediaBrowser.Model/Channels/ChannelMediaType.cs b/MediaBrowser.Model/Channels/ChannelMediaType.cs
new file mode 100644
index 0000000000..5d2201aaf0
--- /dev/null
+++ b/MediaBrowser.Model/Channels/ChannelMediaType.cs
@@ -0,0 +1,9 @@
+namespace MediaBrowser.Model.Channels
+{
+ public enum ChannelMediaType
+ {
+ Audio = 0,
+
+ Video = 1
+ }
+} \ No newline at end of file