mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-17 21:20:46 +01:00
support sending channel paging direct to the provider
This commit is contained in:
35
MediaBrowser.Model/Channels/ChannelInfo.cs
Normal file
35
MediaBrowser.Model/Channels/ChannelInfo.cs
Normal file
@@ -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>();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
17
MediaBrowser.Model/Channels/ChannelMediaContentType.cs
Normal file
17
MediaBrowser.Model/Channels/ChannelMediaContentType.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
namespace MediaBrowser.Model.Channels
|
||||
{
|
||||
public enum ChannelMediaContentType
|
||||
{
|
||||
Clip = 0,
|
||||
|
||||
Podcast = 1,
|
||||
|
||||
Trailer = 2,
|
||||
|
||||
Movie = 3,
|
||||
|
||||
Episode = 4,
|
||||
|
||||
Song = 5
|
||||
}
|
||||
}
|
||||
9
MediaBrowser.Model/Channels/ChannelMediaType.cs
Normal file
9
MediaBrowser.Model/Channels/ChannelMediaType.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace MediaBrowser.Model.Channels
|
||||
{
|
||||
public enum ChannelMediaType
|
||||
{
|
||||
Audio = 0,
|
||||
|
||||
Video = 1
|
||||
}
|
||||
}
|
||||
@@ -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>
|
||||
|
||||
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user