public static QueryMediaWorkflowExecutionListResponse Unmarshall(UnmarshallerContext context)
        {
            QueryMediaWorkflowExecutionListResponse queryMediaWorkflowExecutionListResponse = new QueryMediaWorkflowExecutionListResponse()
            {
                HttpResponse = context.HttpResponse,
                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()
                {
                    RunId           = context.StringValue($"QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList[{i}].RunId"),
                    MediaWorkflowId = context.StringValue($"QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList[{i}].MediaWorkflowId"),
                    Name            = context.StringValue($"QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList[{i}].Name"),
                    State           = context.StringValue($"QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList[{i}].State"),
                    MediaId         = context.StringValue($"QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList[{i}].MediaId"),
                    CreationTime    = context.StringValue($"QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList[{i}].CreationTime")
                };
                QueryMediaWorkflowExecutionListResponse.MediaWorkflowExecution.Input_ input = new QueryMediaWorkflowExecutionListResponse.MediaWorkflowExecution.Input_()
                {
                    UserData = context.StringValue($"QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList[{i}].Input.UserData")
                };
                QueryMediaWorkflowExecutionListResponse.MediaWorkflowExecution.Input_.InputFile_ inputFile = new QueryMediaWorkflowExecutionListResponse.MediaWorkflowExecution.Input_.InputFile_()
                {
                    Bucket   = context.StringValue($"QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList[{i}].Input.InputFile.Bucket"),
                    Location = context.StringValue($"QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList[{i}].Input.InputFile.Location"),
                    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()
                    {
                        Name      = context.StringValue($"QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList[{i}].ActivityList[{j}].Name"),
                        Type      = context.StringValue($"QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList[{i}].ActivityList[{j}].Type"),
                        JobId     = context.StringValue($"QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList[{i}].ActivityList[{j}].JobId"),
                        State     = context.StringValue($"QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList[{i}].ActivityList[{j}].State"),
                        Code      = context.StringValue($"QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList[{i}].ActivityList[{j}].Code"),
                        Message   = context.StringValue($"QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList[{i}].ActivityList[{j}].Message"),
                        StartTime = context.StringValue($"QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList[{i}].ActivityList[{j}].StartTime"),
                        EndTime   = context.StringValue($"QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList[{i}].ActivityList[{j}].EndTime")
                    };
                    QueryMediaWorkflowExecutionListResponse.MediaWorkflowExecution.Activity.MnsMessageResult_ mNsMessageResult = new QueryMediaWorkflowExecutionListResponse.MediaWorkflowExecution.Activity.MnsMessageResult_()
                    {
                        MessageId    = context.StringValue($"QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList[{i}].ActivityList[{j}].MNSMessageResult.MessageId"),
                        ErrorMessage = context.StringValue($"QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList[{i}].ActivityList[{j}].MNSMessageResult.ErrorMessage"),
                        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);
        }
Exemplo n.º 2
0
        public static QueryMediaWorkflowExecutionListResponse Unmarshall(UnmarshallerContext context)
        {
            QueryMediaWorkflowExecutionListResponse queryMediaWorkflowExecutionListResponse = new QueryMediaWorkflowExecutionListResponse();

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

            List <string> queryMediaWorkflowExecutionListResponse_nonExistRunIds = new List <string>();

            for (int i = 0; i < context.Length("QueryMediaWorkflowExecutionList.NonExistRunIds.Length"); i++)
            {
                queryMediaWorkflowExecutionListResponse_nonExistRunIds.Add(context.StringValue("QueryMediaWorkflowExecutionList.NonExistRunIds[" + i + "]"));
            }
            queryMediaWorkflowExecutionListResponse.NonExistRunIds = queryMediaWorkflowExecutionListResponse_nonExistRunIds;

            List <QueryMediaWorkflowExecutionListResponse.QueryMediaWorkflowExecutionList_MediaWorkflowExecution> queryMediaWorkflowExecutionListResponse_mediaWorkflowExecutionList = new List <QueryMediaWorkflowExecutionListResponse.QueryMediaWorkflowExecutionList_MediaWorkflowExecution>();

            for (int i = 0; i < context.Length("QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList.Length"); i++)
            {
                QueryMediaWorkflowExecutionListResponse.QueryMediaWorkflowExecutionList_MediaWorkflowExecution mediaWorkflowExecution = new QueryMediaWorkflowExecutionListResponse.QueryMediaWorkflowExecutionList_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.QueryMediaWorkflowExecutionList_MediaWorkflowExecution.QueryMediaWorkflowExecutionList_Input input = new QueryMediaWorkflowExecutionListResponse.QueryMediaWorkflowExecutionList_MediaWorkflowExecution.QueryMediaWorkflowExecutionList_Input();
                input.UserData = context.StringValue("QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList[" + i + "].Input.UserData");

                QueryMediaWorkflowExecutionListResponse.QueryMediaWorkflowExecutionList_MediaWorkflowExecution.QueryMediaWorkflowExecutionList_Input.QueryMediaWorkflowExecutionList_InputFile inputFile = new QueryMediaWorkflowExecutionListResponse.QueryMediaWorkflowExecutionList_MediaWorkflowExecution.QueryMediaWorkflowExecutionList_Input.QueryMediaWorkflowExecutionList_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.QueryMediaWorkflowExecutionList_MediaWorkflowExecution.QueryMediaWorkflowExecutionList_Activity> mediaWorkflowExecution_activityList = new List <QueryMediaWorkflowExecutionListResponse.QueryMediaWorkflowExecutionList_MediaWorkflowExecution.QueryMediaWorkflowExecutionList_Activity>();
                for (int j = 0; j < context.Length("QueryMediaWorkflowExecutionList.MediaWorkflowExecutionList[" + i + "].ActivityList.Length"); j++)
                {
                    QueryMediaWorkflowExecutionListResponse.QueryMediaWorkflowExecutionList_MediaWorkflowExecution.QueryMediaWorkflowExecutionList_Activity activity = new QueryMediaWorkflowExecutionListResponse.QueryMediaWorkflowExecutionList_MediaWorkflowExecution.QueryMediaWorkflowExecutionList_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.QueryMediaWorkflowExecutionList_MediaWorkflowExecution.QueryMediaWorkflowExecutionList_Activity.QueryMediaWorkflowExecutionList_MNSMessageResult mNSMessageResult = new QueryMediaWorkflowExecutionListResponse.QueryMediaWorkflowExecutionList_MediaWorkflowExecution.QueryMediaWorkflowExecutionList_Activity.QueryMediaWorkflowExecutionList_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;

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

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

            return(queryMediaWorkflowExecutionListResponse);
        }