Exemple #1
0
        /// <summary>
        /// Builds a CloudJobListResponse object
        /// </summary>
        public static ProxyModels.CloudJobListResponse CreateCloudJobListResponse(IEnumerable <string> jobIds)
        {
            ProxyModels.CloudJobListResponse response = new ProxyModels.CloudJobListResponse();
            response.StatusCode = HttpStatusCode.OK;

            List <ProxyModels.CloudJob> jobs = new List <ProxyModels.CloudJob>();

            foreach (string id in jobIds)
            {
                ProxyModels.CloudJob job = new ProxyModels.CloudJob();
                job.Id = id;
                jobs.Add(job);
            }

            response.Jobs = jobs;

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

            List<ProxyModels.CloudJob> jobs = new List<ProxyModels.CloudJob>();

            foreach (string id in jobIds)
            {
                ProxyModels.CloudJob job = new ProxyModels.CloudJob();
                job.Id = id;
                jobs.Add(job);
            }

            response.Jobs = jobs;

            return response;
        }