ec1f5dc317
Add Argument*Exceptions now use proper nameof operators. Added exception messages to quite a few Argument*Exceptions. Fixed rethorwing to be proper syntax. Added a ton of null checkes. (This is only a start, there are about 500 places that need proper null handling) Added some TODOs to log certain exceptions. Fix sln again. Fixed all AssemblyInfo's and added proper copyright (where I could find them) We live in *current year*. Fixed the use of braces. Fixed a ton of properties, and made a fair amount of functions static that should be and can be static. Made more Methods that should be static static. You can now use static to find bad functions! Removed unused variable. And added one more proper XML comment.
88 lines
2.9 KiB
C#
88 lines
2.9 KiB
C#
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);
|
|
|
|
/// <summary>
|
|
/// Gets all channel features.
|
|
/// </summary>
|
|
/// <returns>IEnumerable{ChannelFeatures}.</returns>
|
|
ChannelFeatures[] GetAllChannelFeatures();
|
|
|
|
bool EnableMediaSourceDisplay(BaseItem item);
|
|
bool CanDelete(BaseItem item);
|
|
|
|
Task DeleteItem(BaseItem item);
|
|
|
|
/// <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>
|
|
QueryResult<Channel> GetChannelsInternal(ChannelQuery query);
|
|
|
|
/// <summary>
|
|
/// Gets the channels.
|
|
/// </summary>
|
|
/// <param name="query">The query.</param>
|
|
QueryResult<BaseItemDto> GetChannels(ChannelQuery query);
|
|
|
|
/// <summary>
|
|
/// Gets the latest media.
|
|
/// </summary>
|
|
Task<QueryResult<BaseItemDto>> GetLatestChannelItems(InternalItemsQuery query, CancellationToken cancellationToken);
|
|
|
|
/// <summary>
|
|
/// Gets the latest media.
|
|
/// </summary>
|
|
Task<QueryResult<BaseItem>> GetLatestChannelItemsInternal(InternalItemsQuery query, CancellationToken cancellationToken);
|
|
|
|
/// <summary>
|
|
/// Gets the channel items.
|
|
/// </summary>
|
|
Task<QueryResult<BaseItemDto>> GetChannelItems(InternalItemsQuery query, CancellationToken cancellationToken);
|
|
|
|
/// <summary>
|
|
/// Gets the channel items internal.
|
|
/// </summary>
|
|
Task<QueryResult<BaseItem>> GetChannelItemsInternal(InternalItemsQuery 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);
|
|
|
|
bool EnableMediaProbe(BaseItem item);
|
|
}
|
|
}
|