2020-08-22 19:56:24 +00:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
2019-01-13 20:01:16 +00:00
|
|
|
using System.Collections.Generic;
|
2019-01-13 19:25:32 +00:00
|
|
|
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>
|
2020-06-15 22:37:52 +00:00
|
|
|
/// Interface IItemResolver.
|
2018-12-27 23:27:57 +00:00
|
|
|
/// </summary>
|
|
|
|
public interface IItemResolver
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Resolves the path.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="args">The args.</param>
|
|
|
|
/// <returns>BaseItem.</returns>
|
|
|
|
BaseItem ResolvePath(ItemResolveArgs args);
|
2020-09-28 20:04:31 +00:00
|
|
|
|
2018-12-27 23:27:57 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets the priority.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The priority.</value>
|
|
|
|
ResolverPriority Priority { get; }
|
|
|
|
}
|
|
|
|
|
|
|
|
public interface IMultiItemResolver
|
|
|
|
{
|
|
|
|
MultiItemResolverResult ResolveMultiple(Folder parent,
|
2019-01-07 23:27:46 +00:00
|
|
|
List<FileSystemMetadata> files,
|
2018-12-27 23:27:57 +00:00
|
|
|
string collectionType,
|
|
|
|
IDirectoryService directoryService);
|
|
|
|
}
|
|
|
|
|
|
|
|
public class MultiItemResolverResult
|
|
|
|
{
|
|
|
|
public List<BaseItem> Items { get; set; }
|
2020-06-15 21:43:52 +00:00
|
|
|
|
2018-12-27 23:27:57 +00:00
|
|
|
public List<FileSystemMetadata> ExtraFiles { get; set; }
|
|
|
|
|
|
|
|
public MultiItemResolverResult()
|
|
|
|
{
|
|
|
|
Items = new List<BaseItem>();
|
|
|
|
ExtraFiles = new List<FileSystemMetadata>();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|