mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-31 10:57:38 +01:00
Added ParentId to ApiBaseItem
This commit is contained in:
parent
d6a0e8dbc5
commit
8edc1ce710
2 changed files with 4 additions and 1 deletions
|
|
@ -30,7 +30,8 @@ namespace MediaBrowser.Api
|
|||
Item = item,
|
||||
UserItemData = Kernel.Instance.GetUserItemData(userId, item.Id),
|
||||
Type = item.GetType().Name,
|
||||
IsFolder = (item is Folder)
|
||||
IsFolder = (item is Folder),
|
||||
ParentId = item.Parent == null ? Guid.Empty : item.Parent.Id
|
||||
};
|
||||
|
||||
if (includeChildren)
|
||||
|
|
|
|||
|
|
@ -26,6 +26,8 @@ namespace MediaBrowser.Model.Entities
|
|||
|
||||
public bool IsFolder { get; set; }
|
||||
|
||||
public Guid ParentId { get; set; }
|
||||
|
||||
public string Type { get; set; }
|
||||
|
||||
public bool IsType(Type type)
|
||||
|
|
|
|||
Loading…
Reference in a new issue