Esempio n. 1
0
        /// <summary>
        /// Builds a NodeFileListResponse object
        /// </summary>
        public static ProxyModels.NodeFileListResponse CreateNodeFileListResponse(IEnumerable <string> fileNames)
        {
            ProxyModels.NodeFileListResponse response = new ProxyModels.NodeFileListResponse();
            response.StatusCode = HttpStatusCode.OK;

            List <ProxyModels.NodeFile> files = new List <ProxyModels.NodeFile>();

            foreach (string name in fileNames)
            {
                ProxyModels.NodeFile file = new ProxyModels.NodeFile();
                file.Name = name;
                files.Add(file);
            }

            response.Files = files;

            return(response);
        }
        /// <summary>
        /// Builds a NodeFileListResponse object
        /// </summary>
        public static ProxyModels.NodeFileListResponse CreateNodeFileListResponse(IEnumerable<string> fileNames)
        {
            ProxyModels.NodeFileListResponse response = new ProxyModels.NodeFileListResponse();
            response.StatusCode = HttpStatusCode.OK;

            List<ProxyModels.NodeFile> files = new List<ProxyModels.NodeFile>();

            foreach (string name in fileNames)
            {
                ProxyModels.NodeFile file = new ProxyModels.NodeFile();
                file.Name = name;
                files.Add(file);
            }

            response.Files = files;

            return response;
        }