mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-27 10:58:44 +01:00
Added a VirtualFolder entity, a resolver, and a CollectionType property.
This commit is contained in:
parent
a201eb060b
commit
a508a997d9
@@ -6,6 +6,29 @@ namespace MediaBrowser.Model.Entities
|
||||
{
|
||||
public abstract class BaseItem : BaseEntity, IHasProviderIds
|
||||
{
|
||||
/// <summary>
|
||||
/// Goes up the tree to find the virtual folder parent
|
||||
/// </summary>
|
||||
public VirtualFolder VirtualFolder
|
||||
{
|
||||
get
|
||||
{
|
||||
var vf = this as VirtualFolder;
|
||||
|
||||
if (vf != null)
|
||||
{
|
||||
return vf;
|
||||
}
|
||||
|
||||
if (Parent != null)
|
||||
{
|
||||
return Parent.VirtualFolder;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public string SortName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user