public override IEnumerable <Guid> GetIdsForAncestorQuery() { if (!DisplayParentId.Equals(Guid.Empty)) { yield return(DisplayParentId); } else if (!ParentId.Equals(Guid.Empty)) { yield return(ParentId); } else { yield return(Id); } }
protected override QueryResult <BaseItem> GetItemsInternal(InternalItemsQuery query) { var parent = this as Folder; if (!DisplayParentId.Equals(Guid.Empty)) { parent = LibraryManager.GetItemById(DisplayParentId) as Folder ?? parent; } else if (!ParentId.Equals(Guid.Empty)) { parent = LibraryManager.GetItemById(ParentId) as Folder ?? parent; } return(new UserViewBuilder(UserViewManager, LibraryManager, Logger, UserDataManager, TVSeriesManager) .GetUserItems(parent, this, CollectionType, query)); }
public override IEnumerable <Guid> GetIdsForAncestorQuery() { var list = new List <Guid>(); if (!DisplayParentId.Equals(Guid.Empty)) { list.Add(DisplayParentId); } else if (!ParentId.Equals(Guid.Empty)) { list.Add(ParentId); } else { list.Add(Id); } return(list); }