Added ParentId to ApiBaseItem
This commit is contained in:
parent
d6a0e8dbc5
commit
8edc1ce710
|
@ -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 New Issue
Block a user