#nullable disable
using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Library;
using MediaBrowser.Controller.Resolvers;
namespace Emby.Server.Implementations.Library.Resolvers
{
///
/// Class FolderResolver.
///
/// The type of the T item type.
public abstract class GenericFolderResolver : ItemResolver
where TItemType : Folder, new()
{
///
/// Sets the initial item values.
///
/// The item.
/// The args.
protected override void SetInitialItemValues(TItemType item, ItemResolveArgs args)
{
base.SetInitialItemValues(item, args);
item.IsRoot = args.Parent == null;
}
}
}