jellyfin/MediaBrowser.Controller/Resolvers/IItemResolver.cs

48 lines
1.3 KiB
C#
Raw Normal View History

using System.Collections.Generic;
using MediaBrowser.Controller.Entities;
2018-12-27 16:27:57 -07:00
using MediaBrowser.Controller.Library;
using MediaBrowser.Controller.Providers;
using MediaBrowser.Model.IO;
namespace MediaBrowser.Controller.Resolvers
{
/// <summary>
/// Interface IItemResolver.
2018-12-27 16:27:57 -07:00
/// </summary>
public interface IItemResolver
{
/// <summary>
/// Resolves the path.
/// </summary>
/// <param name="args">The args.</param>
/// <returns>BaseItem.</returns>
BaseItem ResolvePath(ItemResolveArgs args);
/// <summary>
/// Gets the priority.
/// </summary>
/// <value>The priority.</value>
ResolverPriority Priority { get; }
}
public interface IMultiItemResolver
{
MultiItemResolverResult ResolveMultiple(Folder parent,
2019-01-07 16:27:46 -07:00
List<FileSystemMetadata> files,
2018-12-27 16:27:57 -07:00
string collectionType,
IDirectoryService directoryService);
}
public class MultiItemResolverResult
{
public List<BaseItem> Items { get; set; }
2020-06-15 14:43:52 -07:00
2018-12-27 16:27:57 -07:00
public List<FileSystemMetadata> ExtraFiles { get; set; }
public MultiItemResolverResult()
{
Items = new List<BaseItem>();
ExtraFiles = new List<FileSystemMetadata>();
}
}
}