コード例 #1
0
ファイル: BoxDaoBase.cs プロジェクト: ONLYOFFICE/AppServer
        protected List <BoxItem> GetBoxItems(string parentId, bool?folder = null)
        {
            var boxFolderId = MakeBoxId(parentId);
            var items       = ProviderInfo.GetBoxItems(boxFolderId);

            if (folder.HasValue)
            {
                if (folder.Value)
                {
                    return(items.Where(i => i is BoxFolder).ToList());
                }

                return(items.Where(i => i is BoxFile).ToList());
            }

            return(items);
        }