Aliyun.Acs.Mts.Transform.V20140618.QueryMediaWorkflowExecutionListResponseUnmarshaller.Unmarshall C# (CSharp) Метод

Unmarshall() публичный статический Метод

public static Unmarshall ( UnmarshallerContext context ) : QueryMediaWorkflowExecutionListResponse
context UnmarshallerContext
Результат Aliyun.Acs.Mts.Model.V20140618.QueryMediaWorkflowExecutionListResponse
        public static QueryMediaWorkflowExecutionListResponse Unmarshall(UnmarshallerContext context)
        {
            QueryMediaWorkflowExecutionListResponse queryMediaWorkflowExecutionListResponse = new QueryMediaWorkflowExecutionListResponse();

            queryMediaWorkflowExecutionListResponse.HttpResponse = context.HttpResponse;
            queryMediaWorkflowExecutionListResponse.RequestId = context.StringValue("QueryMediaWorkflowExecutionList.RequestId");

            List<string> nonExistRunIds = new List<string>();
            for (int i = 0; i < context.Length("QueryMediaWorkflowExecutionList.NonExistRunIds.Length"); i++) {
                nonExistRunIds.Add(context.StringValue("QueryMediaWorkflowExecutionList.NonExistRunIds["+ i +"]"));
            }
            queryMediaWorkflowExecutionListResponse.NonExistRunIds = nonExistRunIds;

            List<QueryMediaWorkflowExecutionListResponse.MediaWorkflowExecution> mediaWorkflowExecutionList = new List<QueryMediaWorkflowExecutionListResponse.MediaWorkflowExecution>();
            for (int i = 0; i < context.Length("QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList.Length"); i++) {
                QueryMediaWorkflowExecutionListResponse.MediaWorkflowExecution mediaWorkflowExecution = new QueryMediaWorkflowExecutionListResponse.MediaWorkflowExecution();
                mediaWorkflowExecution.RunId = context.StringValue("QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList["+ i +"].RunId");
                mediaWorkflowExecution.MediaWorkflowId = context.StringValue("QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList["+ i +"].MediaWorkflowId");
                mediaWorkflowExecution.Name = context.StringValue("QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList["+ i +"].Name");
                mediaWorkflowExecution.State = context.StringValue("QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList["+ i +"].State");
                mediaWorkflowExecution.MediaId = context.StringValue("QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList["+ i +"].MediaId");
                mediaWorkflowExecution.CreationTime = context.StringValue("QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList["+ i +"].CreationTime");

                QueryMediaWorkflowExecutionListResponse.MediaWorkflowExecution.Input_ input = new QueryMediaWorkflowExecutionListResponse.MediaWorkflowExecution.Input_();
                input.UserData = context.StringValue("QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList["+ i +"].Input.UserData");

                QueryMediaWorkflowExecutionListResponse.MediaWorkflowExecution.Input_.InputFile_ inputFile = new QueryMediaWorkflowExecutionListResponse.MediaWorkflowExecution.Input_.InputFile_();
                inputFile.Bucket = context.StringValue("QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList["+ i +"].Input.InputFile.Bucket");
                inputFile.Location = context.StringValue("QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList["+ i +"].Input.InputFile.Location");
                inputFile.Object = context.StringValue("QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList["+ i +"].Input.InputFile.Object");
                input.InputFile = inputFile;
                mediaWorkflowExecution.Input = input;

                List<QueryMediaWorkflowExecutionListResponse.MediaWorkflowExecution.Activity> activityList = new List<QueryMediaWorkflowExecutionListResponse.MediaWorkflowExecution.Activity>();
                for (int j = 0; j < context.Length("QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList["+ i +"].ActivityList.Length"); j++) {
                    QueryMediaWorkflowExecutionListResponse.MediaWorkflowExecution.Activity activity = new QueryMediaWorkflowExecutionListResponse.MediaWorkflowExecution.Activity();
                    activity.Name = context.StringValue("QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList["+ i +"].ActivityList["+ j +"].Name");
                    activity.Type = context.StringValue("QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList["+ i +"].ActivityList["+ j +"].Type");
                    activity.JobId = context.StringValue("QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList["+ i +"].ActivityList["+ j +"].JobId");
                    activity.State = context.StringValue("QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList["+ i +"].ActivityList["+ j +"].State");
                    activity.Code = context.StringValue("QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList["+ i +"].ActivityList["+ j +"].Code");
                    activity.Message = context.StringValue("QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList["+ i +"].ActivityList["+ j +"].Message");
                    activity.StartTime = context.StringValue("QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList["+ i +"].ActivityList["+ j +"].StartTime");
                    activity.EndTime = context.StringValue("QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList["+ i +"].ActivityList["+ j +"].EndTime");

                    QueryMediaWorkflowExecutionListResponse.MediaWorkflowExecution.Activity.MNSMessageResult_ mNSMessageResult = new QueryMediaWorkflowExecutionListResponse.MediaWorkflowExecution.Activity.MNSMessageResult_();
                    mNSMessageResult.MessageId = context.StringValue("QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList["+ i +"].ActivityList["+ j +"].MNSMessageResult.MessageId");
                    mNSMessageResult.ErrorMessage = context.StringValue("QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList["+ i +"].ActivityList["+ j +"].MNSMessageResult.ErrorMessage");
                    mNSMessageResult.ErrorCode = context.StringValue("QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList["+ i +"].ActivityList["+ j +"].MNSMessageResult.ErrorCode");
                    activity.MNSMessageResult = mNSMessageResult;

                    activityList.Add(activity);
                }
                mediaWorkflowExecution.ActivityList = activityList;

                mediaWorkflowExecutionList.Add(mediaWorkflowExecution);
            }
            queryMediaWorkflowExecutionListResponse.MediaWorkflowExecutionList = mediaWorkflowExecutionList;

            return queryMediaWorkflowExecutionListResponse;
        }
QueryMediaWorkflowExecutionListResponseUnmarshaller