public static StartMediaWorkflowExecutionResponse Unmarshall(UnmarshallerContext context) { StartMediaWorkflowExecutionResponse startMediaWorkflowExecutionResponse = new StartMediaWorkflowExecutionResponse(); startMediaWorkflowExecutionResponse.HttpResponse = context.HttpResponse; startMediaWorkflowExecutionResponse.RequestId = context.StringValue("StartMediaWorkflowExecution.RequestId"); startMediaWorkflowExecutionResponse.RunId = context.StringValue("StartMediaWorkflowExecution.RunId"); return(startMediaWorkflowExecutionResponse); }
public static StartMediaWorkflowExecutionResponse Unmarshall(UnmarshallerContext context) { StartMediaWorkflowExecutionResponse startMediaWorkflowExecutionResponse = new StartMediaWorkflowExecutionResponse() { HttpResponse = context.HttpResponse, RequestId = context.StringValue("StartMediaWorkflowExecution.RequestId") }; StartMediaWorkflowExecutionResponse.MediaWorkflowExecution_ mediaWorkflowExecution = new StartMediaWorkflowExecutionResponse.MediaWorkflowExecution_() { RunId = context.StringValue("StartMediaWorkflowExecution.MediaWorkflowExecution.RunId"), Name = context.StringValue("StartMediaWorkflowExecution.MediaWorkflowExecution.Name"), State = context.StringValue("StartMediaWorkflowExecution.MediaWorkflowExecution.State"), MediaId = context.StringValue("StartMediaWorkflowExecution.MediaWorkflowExecution.MediaId"), CreationTime = context.StringValue("StartMediaWorkflowExecution.MediaWorkflowExecution.CreationTime") }; StartMediaWorkflowExecutionResponse.MediaWorkflowExecution_.Input_ input = new StartMediaWorkflowExecutionResponse.MediaWorkflowExecution_.Input_() { UserData = context.StringValue("StartMediaWorkflowExecution.MediaWorkflowExecution.Input.UserData") }; StartMediaWorkflowExecutionResponse.MediaWorkflowExecution_.Input_.InputFile_ inputFile = new StartMediaWorkflowExecutionResponse.MediaWorkflowExecution_.Input_.InputFile_() { Bucket = context.StringValue("StartMediaWorkflowExecution.MediaWorkflowExecution.Input.InputFile.Bucket"), Location = context.StringValue("StartMediaWorkflowExecution.MediaWorkflowExecution.Input.InputFile.Location"), Object = context.StringValue("StartMediaWorkflowExecution.MediaWorkflowExecution.Input.InputFile.Object") }; input.InputFile = inputFile; mediaWorkflowExecution.Input = input; List <StartMediaWorkflowExecutionResponse.MediaWorkflowExecution_.Activity> activityList = new List <StartMediaWorkflowExecutionResponse.MediaWorkflowExecution_.Activity>(); for (int i = 0; i < context.Length("StartMediaWorkflowExecution.MediaWorkflowExecution.ActivityList.Length"); i++) { StartMediaWorkflowExecutionResponse.MediaWorkflowExecution_.Activity activity = new StartMediaWorkflowExecutionResponse.MediaWorkflowExecution_.Activity() { Name = context.StringValue($"StartMediaWorkflowExecution.MediaWorkflowExecution.ActivityList[{i}].Name"), Type = context.StringValue($"StartMediaWorkflowExecution.MediaWorkflowExecution.ActivityList[{i}].Type"), JobId = context.StringValue($"StartMediaWorkflowExecution.MediaWorkflowExecution.ActivityList[{i}].JobId"), State = context.StringValue($"StartMediaWorkflowExecution.MediaWorkflowExecution.ActivityList[{i}].State"), Code = context.StringValue($"StartMediaWorkflowExecution.MediaWorkflowExecution.ActivityList[{i}].Code"), Message = context.StringValue($"StartMediaWorkflowExecution.MediaWorkflowExecution.ActivityList[{i}].Message"), StartTime = context.StringValue($"StartMediaWorkflowExecution.MediaWorkflowExecution.ActivityList[{i}].StartTime"), EndTime = context.StringValue($"StartMediaWorkflowExecution.MediaWorkflowExecution.ActivityList[{i}].EndTime") }; activityList.Add(activity); } mediaWorkflowExecution.ActivityList = activityList; startMediaWorkflowExecutionResponse.MediaWorkflowExecution = mediaWorkflowExecution; return(startMediaWorkflowExecutionResponse); }