コード例 #1
0
        /// <summary>
        /// Builds a CloudTaskListResponse object
        /// </summary>
        public static ProxyModels.CloudTaskListResponse CreateCloudTaskListResponse(IEnumerable <string> taskIds)
        {
            ProxyModels.CloudTaskListResponse response = new ProxyModels.CloudTaskListResponse();
            response.StatusCode = HttpStatusCode.OK;

            List <ProxyModels.CloudTask> tasks = new List <ProxyModels.CloudTask>();

            foreach (string id in taskIds)
            {
                ProxyModels.CloudTask task = new ProxyModels.CloudTask();
                task.Id = id;
                tasks.Add(task);
            }

            response.Tasks = tasks;

            return(response);
        }
コード例 #2
0
        /// <summary>
        /// Builds a CloudTaskListResponse object
        /// </summary>
        public static ProxyModels.CloudTaskListResponse CreateCloudTaskListResponse(IEnumerable<string> taskIds)
        {
            ProxyModels.CloudTaskListResponse response = new ProxyModels.CloudTaskListResponse();
            response.StatusCode = HttpStatusCode.OK;

            List<ProxyModels.CloudTask> tasks = new List<ProxyModels.CloudTask>();

            foreach (string id in taskIds)
            {
                ProxyModels.CloudTask task = new ProxyModels.CloudTask();
                task.Id = id;
                tasks.Add(task);
            }

            response.Tasks = tasks;

            return response;
        }