aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Channels
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Controller/Channels')
-rw-r--r--MediaBrowser.Controller/Channels/Channel.cs99
-rw-r--r--MediaBrowser.Controller/Channels/ChannelItemInfo.cs75
-rw-r--r--MediaBrowser.Controller/Channels/ChannelItemResult.cs16
-rw-r--r--MediaBrowser.Controller/Channels/ChannelItemType.cs9
-rw-r--r--MediaBrowser.Controller/Channels/ChannelMediaInfo.cs117
-rw-r--r--MediaBrowser.Controller/Channels/ChannelParentalRating.cs15
-rw-r--r--MediaBrowser.Controller/Channels/ChannelSearchInfo.cs14
-rw-r--r--MediaBrowser.Controller/Channels/IChannel.cs76
-rw-r--r--MediaBrowser.Controller/Channels/IChannelManager.cs129
-rw-r--r--MediaBrowser.Controller/Channels/IHasCacheKey.cs13
-rw-r--r--MediaBrowser.Controller/Channels/IIndexableChannel.cs16
-rw-r--r--MediaBrowser.Controller/Channels/IRequiresMediaInfoCallback.cs17
-rw-r--r--MediaBrowser.Controller/Channels/ISearchableChannel.cs28
-rw-r--r--MediaBrowser.Controller/Channels/InternalAllChannelMediaQuery.cs30
-rw-r--r--MediaBrowser.Controller/Channels/InternalChannelFeatures.cs61
-rw-r--r--MediaBrowser.Controller/Channels/InternalChannelItemQuery.cs19
16 files changed, 0 insertions, 734 deletions
diff --git a/MediaBrowser.Controller/Channels/Channel.cs b/MediaBrowser.Controller/Channels/Channel.cs
deleted file mode 100644
index 54faa1443..000000000
--- a/MediaBrowser.Controller/Channels/Channel.cs
+++ /dev/null
@@ -1,99 +0,0 @@
-using MediaBrowser.Controller.Entities;
-using MediaBrowser.Model.Channels;
-using MediaBrowser.Model.Querying;
-using System;
-using System.Linq;
-using MediaBrowser.Model.Serialization;
-using System.Threading;
-using System.Threading.Tasks;
-using MediaBrowser.Common.Progress;
-
-namespace MediaBrowser.Controller.Channels
-{
- public class Channel : Folder
- {
- public override bool IsVisible(User user)
- {
- if (user.Policy.BlockedChannels != null)
- {
- if (user.Policy.BlockedChannels.Contains(Id.ToString("N"), StringComparer.OrdinalIgnoreCase))
- {
- return false;
- }
- }
- else
- {
- if (!user.Policy.EnableAllChannels && !user.Policy.EnabledChannels.Contains(Id.ToString("N"), StringComparer.OrdinalIgnoreCase))
- {
- return false;
- }
- }
-
- return base.IsVisible(user);
- }
-
- [IgnoreDataMember]
- public override bool SupportsInheritedParentImages
- {
- get
- {
- return false;
- }
- }
-
- [IgnoreDataMember]
- public override SourceType SourceType
- {
- get { return SourceType.Channel; }
- }
-
- protected override QueryResult<BaseItem> GetItemsInternal(InternalItemsQuery query)
- {
- try
- {
- // Don't blow up here because it could cause parent screens with other content to fail
- return ChannelManager.GetChannelItemsInternal(new ChannelItemQuery
- {
- ChannelId = Id.ToString("N"),
- Limit = query.Limit,
- StartIndex = query.StartIndex,
- UserId = query.User.Id.ToString("N"),
- OrderBy = query.OrderBy
-
- }, new SimpleProgress<double>(), CancellationToken.None).Result;
- }
- catch
- {
- // Already logged at lower levels
- return new QueryResult<BaseItem>();
- }
- }
-
- protected override string GetInternalMetadataPath(string basePath)
- {
- return GetInternalMetadataPath(basePath, Id);
- }
-
- public static string GetInternalMetadataPath(string basePath, Guid id)
- {
- return System.IO.Path.Combine(basePath, "channels", id.ToString("N"), "metadata");
- }
-
- public override bool CanDelete()
- {
- return false;
- }
-
- protected override bool IsAllowTagFilterEnforced()
- {
- return false;
- }
-
- internal static bool IsChannelVisible(BaseItem channelItem, User user)
- {
- var channel = ChannelManager.GetChannel(channelItem.ChannelId);
-
- return channel.IsVisible(user);
- }
- }
-}
diff --git a/MediaBrowser.Controller/Channels/ChannelItemInfo.cs b/MediaBrowser.Controller/Channels/ChannelItemInfo.cs
deleted file mode 100644
index 57c2f1f7f..000000000
--- a/MediaBrowser.Controller/Channels/ChannelItemInfo.cs
+++ /dev/null
@@ -1,75 +0,0 @@
-using MediaBrowser.Controller.Entities;
-using MediaBrowser.Model.Channels;
-using MediaBrowser.Model.Entities;
-using System;
-using System.Collections.Generic;
-
-namespace MediaBrowser.Controller.Channels
-{
- public class ChannelItemInfo : IHasProviderIds
- {
- public string Name { get; set; }
-
- public string SeriesName { get; set; }
-
- public string Id { get; set; }
-
- public ChannelItemType Type { get; set; }
-
- public string OfficialRating { get; set; }
-
- public string Overview { get; set; }
-
- public List<string> Genres { get; set; }
- public List<string> Studios { get; set; }
- public List<string> Tags { get; set; }
-
- public List<PersonInfo> People { get; set; }
-
- public float? CommunityRating { get; set; }
-
- public long? RunTimeTicks { get; set; }
-
- public string ImageUrl { get; set; }
-
- public ChannelMediaType MediaType { get; set; }
- public ChannelFolderType FolderType { get; set; }
-
- public ChannelMediaContentType ContentType { get; set; }
- public ExtraType ExtraType { get; set; }
- public List<TrailerType> TrailerTypes { get; set; }
-
- public Dictionary<string, string> ProviderIds { get; set; }
-
- public DateTime? PremiereDate { get; set; }
- public int? ProductionYear { get; set; }
-
- public DateTime? DateCreated { get; set; }
-
- public int? IndexNumber { get; set; }
- public int? ParentIndexNumber { get; set; }
-
- public List<ChannelMediaInfo> MediaSources { get; set; }
-
- public bool IsInfiniteStream { get; set; }
-
- public string HomePageUrl { get; set; }
-
- public List<string> Artists { get; set; }
-
- public List<string> AlbumArtists { get; set; }
-
- public ChannelItemInfo()
- {
- MediaSources = new List<ChannelMediaInfo>();
- TrailerTypes = new List<TrailerType>();
- Genres = new List<string>();
- Studios = new List<string>();
- People = new List<PersonInfo>();
- Tags = new List<string>();
- ProviderIds = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
- Artists = new List<string>();
- AlbumArtists = new List<string>();
- }
- }
-}
diff --git a/MediaBrowser.Controller/Channels/ChannelItemResult.cs b/MediaBrowser.Controller/Channels/ChannelItemResult.cs
deleted file mode 100644
index f88881811..000000000
--- a/MediaBrowser.Controller/Channels/ChannelItemResult.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-using System.Collections.Generic;
-
-namespace MediaBrowser.Controller.Channels
-{
- public class ChannelItemResult
- {
- public List<ChannelItemInfo> Items { get; set; }
-
- public int? TotalRecordCount { get; set; }
-
- public ChannelItemResult()
- {
- Items = new List<ChannelItemInfo>();
- }
- }
-} \ No newline at end of file
diff --git a/MediaBrowser.Controller/Channels/ChannelItemType.cs b/MediaBrowser.Controller/Channels/ChannelItemType.cs
deleted file mode 100644
index 184ce8a76..000000000
--- a/MediaBrowser.Controller/Channels/ChannelItemType.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-namespace MediaBrowser.Controller.Channels
-{
- public enum ChannelItemType
- {
- Media = 0,
-
- Folder = 1
- }
-} \ No newline at end of file
diff --git a/MediaBrowser.Controller/Channels/ChannelMediaInfo.cs b/MediaBrowser.Controller/Channels/ChannelMediaInfo.cs
deleted file mode 100644
index cf7b6ba6a..000000000
--- a/MediaBrowser.Controller/Channels/ChannelMediaInfo.cs
+++ /dev/null
@@ -1,117 +0,0 @@
-using MediaBrowser.Common.Extensions;
-using MediaBrowser.Model.Dto;
-using MediaBrowser.Model.Entities;
-using MediaBrowser.Model.MediaInfo;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-
-namespace MediaBrowser.Controller.Channels
-{
- public class ChannelMediaInfo
- {
- public string Path { get; set; }
-
- public Dictionary<string, string> RequiredHttpHeaders { get; set; }
-
- public string Container { get; set; }
- public string AudioCodec { get; set; }
- public string VideoCodec { get; set; }
-
- public int? AudioBitrate { get; set; }
- public int? VideoBitrate { get; set; }
- public int? Width { get; set; }
- public int? Height { get; set; }
- public int? AudioChannels { get; set; }
- public int? AudioSampleRate { get; set; }
-
- public string VideoProfile { get; set; }
- public float? VideoLevel { get; set; }
- public float? Framerate { get; set; }
-
- public bool? IsAnamorphic { get; set; }
-
- public MediaProtocol Protocol { get; set; }
-
- public long? RunTimeTicks { get; set; }
-
- public string Id { get; set; }
-
- public bool ReadAtNativeFramerate { get; set; }
- public bool SupportsDirectPlay { get; set; }
-
- public ChannelMediaInfo()
- {
- RequiredHttpHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
-
- // This is most common
- Protocol = MediaProtocol.Http;
- SupportsDirectPlay = true;
- }
-
- public MediaSourceInfo ToMediaSource(Guid itemId)
- {
- var id = string.IsNullOrWhiteSpace(Path) ?
- itemId.ToString("N") :
- Path.GetMD5().ToString("N");
-
- var source = new MediaSourceInfo
- {
- MediaStreams = GetMediaStreams(this).ToList(),
-
- Container = Container,
- Protocol = Protocol,
- Path = Path,
- RequiredHttpHeaders = RequiredHttpHeaders,
- RunTimeTicks = RunTimeTicks,
- Name = id,
- Id = id,
- ReadAtNativeFramerate = ReadAtNativeFramerate,
- SupportsDirectStream = Protocol == MediaProtocol.Http && !string.IsNullOrWhiteSpace(Container) && !string.Equals(Container, "hls", StringComparison.OrdinalIgnoreCase),
- SupportsDirectPlay = SupportsDirectPlay,
- IsRemote = true
- };
-
- source.InferTotalBitrate();
-
- return source;
- }
-
- private IEnumerable<MediaStream> GetMediaStreams(ChannelMediaInfo info)
- {
- var list = new List<MediaStream>();
-
- if (!string.IsNullOrWhiteSpace(info.VideoCodec))
- {
- list.Add(new MediaStream
- {
- Type = MediaStreamType.Video,
- Width = info.Width,
- RealFrameRate = info.Framerate,
- Profile = info.VideoProfile,
- Level = info.VideoLevel,
- Index = -1,
- Height = info.Height,
- Codec = info.VideoCodec,
- BitRate = info.VideoBitrate,
- AverageFrameRate = info.Framerate
- });
- }
-
- if (!string.IsNullOrWhiteSpace(info.AudioCodec))
- {
- list.Add(new MediaStream
- {
- Type = MediaStreamType.Audio,
- Index = -1,
- Codec = info.AudioCodec,
- BitRate = info.AudioBitrate,
- Channels = info.AudioChannels,
- SampleRate = info.AudioSampleRate
- });
- }
-
- return list;
- }
- }
-} \ No newline at end of file
diff --git a/MediaBrowser.Controller/Channels/ChannelParentalRating.cs b/MediaBrowser.Controller/Channels/ChannelParentalRating.cs
deleted file mode 100644
index d9cc521b3..000000000
--- a/MediaBrowser.Controller/Channels/ChannelParentalRating.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-namespace MediaBrowser.Controller.Channels
-{
- public enum ChannelParentalRating
- {
- GeneralAudience = 0,
-
- UsPG = 1,
-
- UsPG13 = 2,
-
- UsR = 3,
-
- Adult = 4
- }
-} \ No newline at end of file
diff --git a/MediaBrowser.Controller/Channels/ChannelSearchInfo.cs b/MediaBrowser.Controller/Channels/ChannelSearchInfo.cs
deleted file mode 100644
index c2a51654c..000000000
--- a/MediaBrowser.Controller/Channels/ChannelSearchInfo.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-namespace MediaBrowser.Controller.Channels
-{
- public class ChannelSearchInfo
- {
- public string SearchTerm { get; set; }
-
- public string UserId { get; set; }
- }
-
- public class ChannelLatestMediaSearch
- {
- public string UserId { get; set; }
- }
-} \ No newline at end of file
diff --git a/MediaBrowser.Controller/Channels/IChannel.cs b/MediaBrowser.Controller/Channels/IChannel.cs
deleted file mode 100644
index dc1d9b00a..000000000
--- a/MediaBrowser.Controller/Channels/IChannel.cs
+++ /dev/null
@@ -1,76 +0,0 @@
-using MediaBrowser.Controller.Providers;
-using MediaBrowser.Model.Entities;
-using System.Collections.Generic;
-using System.Threading;
-using System.Threading.Tasks;
-
-namespace MediaBrowser.Controller.Channels
-{
- public interface IChannel
- {
- /// <summary>
- /// Gets the name.
- /// </summary>
- /// <value>The name.</value>
- string Name { get; }
-
- /// <summary>
- /// Gets the description.
- /// </summary>
- /// <value>The description.</value>
- string Description { get; }
-
- /// <summary>
- /// Gets the data version.
- /// </summary>
- /// <value>The data version.</value>
- string DataVersion { get; }
-
- /// <summary>
- /// Gets the home page URL.
- /// </summary>
- /// <value>The home page URL.</value>
- string HomePageUrl { get; }
-
- /// <summary>
- /// Gets the parental rating.
- /// </summary>
- /// <value>The parental rating.</value>
- ChannelParentalRating ParentalRating { get; }
-
- /// <summary>
- /// Gets the channel information.
- /// </summary>
- /// <returns>ChannelFeatures.</returns>
- InternalChannelFeatures GetChannelFeatures();
-
- /// <summary>
- /// Determines whether [is enabled for] [the specified user].
- /// </summary>
- /// <param name="userId">The user identifier.</param>
- /// <returns><c>true</c> if [is enabled for] [the specified user]; otherwise, <c>false</c>.</returns>
- bool IsEnabledFor(string userId);
-
- /// <summary>
- /// Gets the channel items.
- /// </summary>
- /// <param name="query">The query.</param>
- /// <param name="cancellationToken">The cancellation token.</param>
- /// <returns>Task{IEnumerable{ChannelItem}}.</returns>
- Task<ChannelItemResult> GetChannelItems(InternalChannelItemQuery query, CancellationToken cancellationToken);
-
- /// <summary>
- /// Gets the channel image.
- /// </summary>
- /// <param name="type">The type.</param>
- /// <param name="cancellationToken">The cancellation token.</param>
- /// <returns>Task{DynamicImageInfo}.</returns>
- Task<DynamicImageResponse> GetChannelImage(ImageType type, CancellationToken cancellationToken);
-
- /// <summary>
- /// Gets the supported channel images.
- /// </summary>
- /// <returns>IEnumerable{ImageType}.</returns>
- IEnumerable<ImageType> GetSupportedChannelImages();
- }
-}
diff --git a/MediaBrowser.Controller/Channels/IChannelManager.cs b/MediaBrowser.Controller/Channels/IChannelManager.cs
deleted file mode 100644
index 37fc892b3..000000000
--- a/MediaBrowser.Controller/Channels/IChannelManager.cs
+++ /dev/null
@@ -1,129 +0,0 @@
-using System;
-using MediaBrowser.Controller.Entities;
-using MediaBrowser.Model.Channels;
-using MediaBrowser.Model.Dto;
-using MediaBrowser.Model.Querying;
-using System.Collections.Generic;
-using System.Threading;
-using System.Threading.Tasks;
-
-namespace MediaBrowser.Controller.Channels
-{
- public interface IChannelManager
- {
- /// <summary>
- /// Adds the parts.
- /// </summary>
- /// <param name="channels">The channels.</param>
- void AddParts(IEnumerable<IChannel> channels);
-
- /// <summary>
- /// Gets the channel features.
- /// </summary>
- /// <param name="id">The identifier.</param>
- /// <returns>ChannelFeatures.</returns>
- ChannelFeatures GetChannelFeatures(string id);
-
- bool SupportsSync(string channelId);
-
- /// <summary>
- /// Gets all channel features.
- /// </summary>
- /// <returns>IEnumerable{ChannelFeatures}.</returns>
- ChannelFeatures[] GetAllChannelFeatures();
-
- /// <summary>
- /// Gets the channel.
- /// </summary>
- /// <param name="id">The identifier.</param>
- /// <returns>Channel.</returns>
- Channel GetChannel(string id);
-
- /// <summary>
- /// Gets the channels internal.
- /// </summary>
- /// <param name="query">The query.</param>
- /// <param name="cancellationToken">The cancellation token.</param>
- /// <returns>Task&lt;QueryResult&lt;Channel&gt;&gt;.</returns>
- Task<QueryResult<Channel>> GetChannelsInternal(ChannelQuery query, CancellationToken cancellationToken);
-
- /// <summary>
- /// Gets the channels.
- /// </summary>
- /// <param name="query">The query.</param>
- /// <param name="cancellationToken">The cancellation token.</param>
- /// <returns>Task{QueryResult{BaseItemDto}}.</returns>
- Task<QueryResult<BaseItemDto>> GetChannels(ChannelQuery query, CancellationToken cancellationToken);
-
- /// <summary>
- /// Gets all media internal.
- /// </summary>
- /// <param name="query">The query.</param>
- /// <param name="cancellationToken">The cancellation token.</param>
- /// <returns>Task&lt;QueryResult&lt;BaseItem&gt;&gt;.</returns>
- Task<QueryResult<BaseItem>> GetAllMediaInternal(AllChannelMediaQuery query, CancellationToken cancellationToken);
-
- /// <summary>
- /// Gets all media.
- /// </summary>
- /// <param name="query">The query.</param>
- /// <param name="cancellationToken">The cancellation token.</param>
- /// <returns>Task{QueryResult{BaseItemDto}}.</returns>
- Task<QueryResult<BaseItemDto>> GetAllMedia(AllChannelMediaQuery query, CancellationToken cancellationToken);
-
- /// <summary>
- /// Gets the latest media.
- /// </summary>
- /// <param name="query">The query.</param>
- /// <param name="cancellationToken">The cancellation token.</param>
- /// <returns>Task{QueryResult{BaseItemDto}}.</returns>
- Task<QueryResult<BaseItemDto>> GetLatestChannelItems(AllChannelMediaQuery query, CancellationToken cancellationToken);
-
- /// <summary>
- /// Gets the latest channel items internal.
- /// </summary>
- /// <param name="query">The query.</param>
- /// <param name="cancellationToken">The cancellation token.</param>
- /// <returns>Task&lt;QueryResult&lt;BaseItem&gt;&gt;.</returns>
- Task<QueryResult<BaseItem>> GetLatestChannelItemsInternal(AllChannelMediaQuery query, CancellationToken cancellationToken);
-
- /// <summary>
- /// Gets the channel items.
- /// </summary>
- /// <param name="query">The query.</param>
- /// <param name="cancellationToken">The cancellation token.</param>
- /// <returns>Task{QueryResult{BaseItemDto}}.</returns>
- Task<QueryResult<BaseItemDto>> GetChannelItems(ChannelItemQuery query, CancellationToken cancellationToken);
-
- /// <summary>
- /// Gets the channel items internal.
- /// </summary>
- /// <param name="query">The query.</param>
- /// <param name="progress">The progress.</param>
- /// <param name="cancellationToken">The cancellation token.</param>
- /// <returns>Task&lt;QueryResult&lt;BaseItem&gt;&gt;.</returns>
- Task<QueryResult<BaseItem>> GetChannelItemsInternal(ChannelItemQuery query, IProgress<double> progress, CancellationToken cancellationToken);
-
- /// <summary>
- /// Gets the channel item media sources.
- /// </summary>
- /// <param name="item">The item.</param>
- /// <param name="cancellationToken">The cancellation token.</param>
- /// <returns>Task{IEnumerable{MediaSourceInfo}}.</returns>
- IEnumerable<MediaSourceInfo> GetStaticMediaSources(BaseItem item, CancellationToken cancellationToken);
-
- /// <summary>
- /// Gets the channel folder.
- /// </summary>
- /// <param name="cancellationToken">The cancellation token.</param>
- /// <returns>BaseItemDto.</returns>
- Folder GetInternalChannelFolder(CancellationToken cancellationToken);
-
- /// <summary>
- /// Gets the channel folder.
- /// </summary>
- /// <param name="userId">The user identifier.</param>
- /// <param name="cancellationToken">The cancellation token.</param>
- BaseItemDto GetChannelFolder(string userId, CancellationToken cancellationToken);
- }
-}
diff --git a/MediaBrowser.Controller/Channels/IHasCacheKey.cs b/MediaBrowser.Controller/Channels/IHasCacheKey.cs
deleted file mode 100644
index 6376d2f91..000000000
--- a/MediaBrowser.Controller/Channels/IHasCacheKey.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-
-namespace MediaBrowser.Controller.Channels
-{
- public interface IHasCacheKey
- {
- /// <summary>
- /// Gets the cache key.
- /// </summary>
- /// <param name="userId">The user identifier.</param>
- /// <returns>System.String.</returns>
- string GetCacheKey(string userId);
- }
-}
diff --git a/MediaBrowser.Controller/Channels/IIndexableChannel.cs b/MediaBrowser.Controller/Channels/IIndexableChannel.cs
deleted file mode 100644
index 0b52585e8..000000000
--- a/MediaBrowser.Controller/Channels/IIndexableChannel.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-using System.Threading;
-using System.Threading.Tasks;
-
-namespace MediaBrowser.Controller.Channels
-{
- public interface IIndexableChannel
- {
- /// <summary>
- /// Gets all media.
- /// </summary>
- /// <param name="query">The query.</param>
- /// <param name="cancellationToken">The cancellation token.</param>
- /// <returns>Task{ChannelItemResult}.</returns>
- Task<ChannelItemResult> GetAllMedia(InternalAllChannelMediaQuery query, CancellationToken cancellationToken);
- }
-} \ No newline at end of file
diff --git a/MediaBrowser.Controller/Channels/IRequiresMediaInfoCallback.cs b/MediaBrowser.Controller/Channels/IRequiresMediaInfoCallback.cs
deleted file mode 100644
index b4b6be9ba..000000000
--- a/MediaBrowser.Controller/Channels/IRequiresMediaInfoCallback.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-using System.Collections.Generic;
-using System.Threading;
-using System.Threading.Tasks;
-
-namespace MediaBrowser.Controller.Channels
-{
- public interface IRequiresMediaInfoCallback
- {
- /// <summary>
- /// Gets the channel item media information.
- /// </summary>
- /// <param name="id">The identifier.</param>
- /// <param name="cancellationToken">The cancellation token.</param>
- /// <returns>Task{IEnumerable{ChannelMediaInfo}}.</returns>
- Task<IEnumerable<ChannelMediaInfo>> GetChannelItemMediaInfo(string id, CancellationToken cancellationToken);
- }
-} \ No newline at end of file
diff --git a/MediaBrowser.Controller/Channels/ISearchableChannel.cs b/MediaBrowser.Controller/Channels/ISearchableChannel.cs
deleted file mode 100644
index d63708494..000000000
--- a/MediaBrowser.Controller/Channels/ISearchableChannel.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-using System.Collections.Generic;
-using System.Threading;
-using System.Threading.Tasks;
-
-namespace MediaBrowser.Controller.Channels
-{
- public interface ISearchableChannel
- {
- /// <summary>
- /// Searches the specified search term.
- /// </summary>
- /// <param name="searchInfo">The search information.</param>
- /// <param name="cancellationToken">The cancellation token.</param>
- /// <returns>Task{IEnumerable{ChannelItemInfo}}.</returns>
- Task<IEnumerable<ChannelItemInfo>> Search(ChannelSearchInfo searchInfo, CancellationToken cancellationToken);
- }
-
- public interface ISupportsLatestMedia
- {
- /// <summary>
- /// Gets the latest media.
- /// </summary>
- /// <param name="request">The request.</param>
- /// <param name="cancellationToken">The cancellation token.</param>
- /// <returns>Task{IEnumerable{ChannelItemInfo}}.</returns>
- Task<IEnumerable<ChannelItemInfo>> GetLatestMedia(ChannelLatestMediaSearch request, CancellationToken cancellationToken);
- }
-} \ No newline at end of file
diff --git a/MediaBrowser.Controller/Channels/InternalAllChannelMediaQuery.cs b/MediaBrowser.Controller/Channels/InternalAllChannelMediaQuery.cs
deleted file mode 100644
index ce091da7e..000000000
--- a/MediaBrowser.Controller/Channels/InternalAllChannelMediaQuery.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-using MediaBrowser.Model.Channels;
-using MediaBrowser.Model.Entities;
-
-namespace MediaBrowser.Controller.Channels
-{
- public class InternalAllChannelMediaQuery
- {
- public string UserId { get; set; }
-
- /// <summary>
- /// Gets or sets the content types.
- /// </summary>
- /// <value>The content types.</value>
- public ChannelMediaContentType[] ContentTypes { get; set; }
-
- /// <summary>
- /// Gets or sets the extra types.
- /// </summary>
- /// <value>The extra types.</value>
- public ExtraType[] ExtraTypes { get; set; }
- public TrailerType[] TrailerTypes { get; set; }
-
- public InternalAllChannelMediaQuery()
- {
- ContentTypes = new ChannelMediaContentType[] { };
- ExtraTypes = new ExtraType[] { };
- TrailerTypes = new TrailerType[] { };
- }
- }
-} \ No newline at end of file
diff --git a/MediaBrowser.Controller/Channels/InternalChannelFeatures.cs b/MediaBrowser.Controller/Channels/InternalChannelFeatures.cs
deleted file mode 100644
index 976808aad..000000000
--- a/MediaBrowser.Controller/Channels/InternalChannelFeatures.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-using System;
-using MediaBrowser.Model.Channels;
-using System.Collections.Generic;
-
-namespace MediaBrowser.Controller.Channels
-{
- public class InternalChannelFeatures
- {
- /// <summary>
- /// Gets or sets the media types.
- /// </summary>
- /// <value>The media types.</value>
- public List<ChannelMediaType> MediaTypes { get; set; }
-
- /// <summary>
- /// Gets or sets the content types.
- /// </summary>
- /// <value>The content types.</value>
- 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; }
-
- /// <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 the automatic refresh levels.
- /// </summary>
- /// <value>The automatic refresh levels.</value>
- public int? AutoRefreshLevels { get; set; }
-
- /// <summary>
- /// Gets or sets the daily download limit.
- /// </summary>
- /// <value>The daily download limit.</value>
- public int? DailyDownloadLimit { get; set; }
- /// <summary>
- /// Gets or sets a value indicating whether [supports downloading].
- /// </summary>
- /// <value><c>true</c> if [supports downloading]; otherwise, <c>false</c>.</value>
- public bool SupportsContentDownloading { get; set; }
-
- public InternalChannelFeatures()
- {
- MediaTypes = new List<ChannelMediaType>();
- ContentTypes = new List<ChannelMediaContentType>();
-
- DefaultSortFields = new List<ChannelItemSortField>();
- }
- }
-}
diff --git a/MediaBrowser.Controller/Channels/InternalChannelItemQuery.cs b/MediaBrowser.Controller/Channels/InternalChannelItemQuery.cs
deleted file mode 100644
index 82ef6b946..000000000
--- a/MediaBrowser.Controller/Channels/InternalChannelItemQuery.cs
+++ /dev/null
@@ -1,19 +0,0 @@
-using MediaBrowser.Model.Channels;
-
-namespace MediaBrowser.Controller.Channels
-{
- public class InternalChannelItemQuery
- {
- public string FolderId { get; set; }
-
- public string UserId { get; set; }
-
- public int? StartIndex { get; set; }
-
- public int? Limit { get; set; }
-
- public ChannelItemSortField? SortBy { get; set; }
-
- public bool SortDescending { get; set; }
- }
-} \ No newline at end of file