jellyfin/MediaBrowser.Controller/Resolvers/IItemResolver.cs

53 lines
1.4 KiB
C#
Raw Normal View History

#pragma warning disable CS1591
using System.Collections.Generic;
using Jellyfin.Data.Enums;
using MediaBrowser.Controller.Entities;
2018-12-27 23:27:57 +00:00
using MediaBrowser.Controller.Library;
using MediaBrowser.Controller.Providers;
using MediaBrowser.Model.IO;
namespace MediaBrowser.Controller.Resolvers
{
/// <summary>
/// Interface IItemResolver.
2018-12-27 23:27:57 +00:00
/// </summary>
public interface IItemResolver
{
/// <summary>
/// Gets the priority.
/// </summary>
/// <value>The priority.</value>
ResolverPriority Priority { get; }
2018-12-27 23:27:57 +00:00
/// <summary>
/// Resolves the path.
/// </summary>
/// <param name="args">The args.</param>
/// <returns>BaseItem.</returns>
BaseItem? ResolvePath(ItemResolveArgs args);
2018-12-27 23:27:57 +00:00
}
public interface IMultiItemResolver
{
2020-10-12 18:05:11 +00:00
MultiItemResolverResult ResolveMultiple(
Folder parent,
2019-01-07 23:27:46 +00:00
List<FileSystemMetadata> files,
CollectionType? collectionType,
2018-12-27 23:27:57 +00:00
IDirectoryService directoryService);
}
public class MultiItemResolverResult
{
public MultiItemResolverResult()
{
Items = new List<BaseItem>();
ExtraFiles = new List<FileSystemMetadata>();
}
public List<BaseItem> Items { get; set; }
public List<FileSystemMetadata> ExtraFiles { get; set; }
2018-12-27 23:27:57 +00:00
}
}