Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
        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));
        }
Ejemplo n.º 3
0
        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);
        }