2013-03-02 23:58:04 -07:00
|
|
|
|
using MediaBrowser.Controller.Entities;
|
2013-03-03 09:53:58 -07:00
|
|
|
|
using MediaBrowser.Controller.Library;
|
2014-12-03 22:24:41 -07:00
|
|
|
|
using MediaBrowser.Controller.Providers;
|
|
|
|
|
using System.Collections.Generic;
|
2016-10-25 12:02:04 -07:00
|
|
|
|
using MediaBrowser.Common.IO;
|
|
|
|
|
using MediaBrowser.Controller.IO;
|
|
|
|
|
using MediaBrowser.Model.IO;
|
2013-03-02 23:58:04 -07:00
|
|
|
|
|
2013-03-03 09:53:58 -07:00
|
|
|
|
namespace MediaBrowser.Controller.Resolvers
|
2013-03-02 23:58:04 -07:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Interface IItemResolver
|
|
|
|
|
/// </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; }
|
|
|
|
|
}
|
2014-12-03 22:24:41 -07:00
|
|
|
|
|
|
|
|
|
public interface IMultiItemResolver
|
|
|
|
|
{
|
2015-10-03 20:38:46 -07:00
|
|
|
|
MultiItemResolverResult ResolveMultiple(Folder parent,
|
|
|
|
|
List<FileSystemMetadata> files,
|
2014-12-03 22:24:41 -07:00
|
|
|
|
string collectionType,
|
|
|
|
|
IDirectoryService directoryService);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class MultiItemResolverResult
|
|
|
|
|
{
|
|
|
|
|
public List<BaseItem> Items { get; set; }
|
2015-10-03 20:38:46 -07:00
|
|
|
|
public List<FileSystemMetadata> ExtraFiles { get; set; }
|
2014-12-03 22:24:41 -07:00
|
|
|
|
|
|
|
|
|
public MultiItemResolverResult()
|
|
|
|
|
{
|
|
|
|
|
Items = new List<BaseItem>();
|
2015-10-03 20:38:46 -07:00
|
|
|
|
ExtraFiles = new List<FileSystemMetadata>();
|
2014-12-03 22:24:41 -07:00
|
|
|
|
}
|
|
|
|
|
}
|
2013-03-02 23:58:04 -07:00
|
|
|
|
}
|