Exemplo n.º 1
0
        /// <summary>
        /// Builds a ComputeNodeGetResponse object
        /// </summary>
        public static AzureOperationResponse <ProxyModels.UploadBatchServiceLogsResult, ProxyModels.ComputeNodeUploadBatchServiceLogsHeaders> CreateComputeNodeServiceLogsAddResponse(int numberOfFilesUploaded, string virtualDirectoryName)
        {
            var response = new AzureOperationResponse <ProxyModels.UploadBatchServiceLogsResult, ProxyModels.ComputeNodeUploadBatchServiceLogsHeaders>();

            response.Response = new HttpResponseMessage(HttpStatusCode.OK);

            ProxyModels.UploadBatchServiceLogsResult result = new ProxyModels.UploadBatchServiceLogsResult();
            result.NumberOfFilesUploaded = numberOfFilesUploaded;
            result.VirtualDirectoryName  = virtualDirectoryName;

            response.Body = result;

            return(response);
        }
Exemplo n.º 2
0
 internal UploadBatchServiceLogsResult(Models.UploadBatchServiceLogsResult protocolObject)
 {
     this.NumberOfFilesUploaded = protocolObject.NumberOfFilesUploaded;
     this.VirtualDirectoryName  = protocolObject.VirtualDirectoryName;
 }