static StringBuilder PrintFolders(CenterDevice.Rest.Clients.Collections.Collection collection) { var result = new StringBuilder(); if ((collection.SubFolders != null) && (collection.SubFolders.Count != 0)) { result.Append("TeamworkFolders[Collection:" + collection.Id + "]=" + collection.Name); result.Append(PrintSubFolders(collection.SubFolders).ToString()); } PrintFiles(collection.Documents); return(result); }
/// <summary> /// Create a directory instance representing a CenterDevice collection (=folder level below root level) /// </summary> /// <param name="client"></param> /// <param name="parent"></param> /// <param name="collection"></param> public DirectoryInfo(CenterDevice.IO.IOClientBase client, CenterDevice.IO.DirectoryInfo parent, CenterDevice.Rest.Clients.Collections.Collection collection) { this.ioClient = client; this.parentDirectory = parent; this.restCollection = collection; this.restFolder = null; }