aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model
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
parentb98be6d7f1627b8031288e4e8785d5ab9072fb29 (diff)
support sending channel paging direct to the provider
Diffstat (limited to 'MediaBrowser.Model')
-rw-r--r--MediaBrowser.Model/Channels/ChannelInfo.cs35
-rw-r--r--MediaBrowser.Model/Channels/ChannelMediaContentType.cs17
-rw-r--r--MediaBrowser.Model/Channels/ChannelMediaType.cs9
-rw-r--r--MediaBrowser.Model/Dto/BaseItemDto.cs3
-rw-r--r--MediaBrowser.Model/MediaBrowser.Model.csproj3
5 files changed, 66 insertions, 1 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
diff --git a/MediaBrowser.Model/Dto/BaseItemDto.cs b/MediaBrowser.Model/Dto/BaseItemDto.cs
index 9f88261841..abad40e295 100644
--- a/MediaBrowser.Model/Dto/BaseItemDto.cs
+++ b/MediaBrowser.Model/Dto/BaseItemDto.cs
@@ -138,7 +138,8 @@ namespace MediaBrowser.Model.Dto
/// </summary>
/// <value>The channel identifier.</value>
public string ChannelId { get; set; }
-
+ public string ChannelName { get; set; }
+
/// <summary>
/// Gets or sets the overview.
/// </summary>
diff --git a/MediaBrowser.Model/MediaBrowser.Model.csproj b/MediaBrowser.Model/MediaBrowser.Model.csproj
index 131c36044d..f6f7666c7a 100644
--- a/MediaBrowser.Model/MediaBrowser.Model.csproj
+++ b/MediaBrowser.Model/MediaBrowser.Model.csproj
@@ -59,7 +59,10 @@
<Compile Include="ApiClient\IServerEvents.cs" />
<Compile Include="ApiClient\GeneralCommandEventArgs.cs" />
<Compile Include="ApiClient\SessionUpdatesEventArgs.cs" />
+ <Compile Include="Channels\ChannelInfo.cs" />
<Compile Include="Channels\ChannelItemQuery.cs" />
+ <Compile Include="Channels\ChannelMediaContentType.cs" />
+ <Compile Include="Channels\ChannelMediaType.cs" />
<Compile Include="Channels\ChannelQuery.cs" />
<Compile Include="Chapters\RemoteChapterInfo.cs" />
<Compile Include="Chapters\RemoteChapterResult.cs" />