Пример #1
0
        /// <summary>
        /// Gets a list of Files and Folders
        /// </summary>
        /// <returns>A list of Files and Folders</returns>
        public Folder Find(RootFolder rootFolder = RootFolder.Root)
        {
            Parameters = new Dictionary <string, string>();

            if (rootFolder == RootFolder.Root)
            {
                if (!string.IsNullOrWhiteSpace(Path))
                {
                    Parameters.Add("path", Path);
                }

                if (!string.IsNullOrWhiteSpace(FolderId))
                {
                    Resource = "archive/" + FolderId;
                }
                else if (!string.IsNullOrWhiteSpace(Id))
                {
                    Resource = "archive/" + Id;
                }
            }
            else
            {
                Resource = "archive/" + rootFolder.GetStringValue();
            }

            return(BaseFind(Parameters)?.Entity);
        }