mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 05:57:20 -04:00
Added IsRoot and IsVirtualFolder to DTOBaseItem
This commit is contained in:
parent
9c456c63c8
commit
6d7c29f6c8
2 changed files with 13 additions and 0 deletions
|
@ -95,6 +95,9 @@ namespace MediaBrowser.Api
|
|||
if (folder != null)
|
||||
{
|
||||
dto.SpecialCounts = folder.GetSpecialCounts(user);
|
||||
|
||||
dto.IsRoot = folder.IsRoot;
|
||||
dto.IsVirtualFolder = folder.IsVirtualFolder;
|
||||
}
|
||||
|
||||
return dto;
|
||||
|
|
|
@ -49,6 +49,16 @@ namespace MediaBrowser.Model.DTO
|
|||
|
||||
public bool IsFolder { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// If the item is a Folder this will determine if it's the Root or not
|
||||
/// </summary>
|
||||
public bool? IsRoot { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// If the item is a Folder this will determine if it's a VF or not
|
||||
/// </summary>
|
||||
public bool? IsVirtualFolder { get; set; }
|
||||
|
||||
public Guid? ParentId { get; set; }
|
||||
|
||||
public string Type { get; set; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue