public static QueryMediaInfoJobListResponse Unmarshall(UnmarshallerContext context) { QueryMediaInfoJobListResponse queryMediaInfoJobListResponse = new QueryMediaInfoJobListResponse(); queryMediaInfoJobListResponse.HttpResponse = context.HttpResponse; queryMediaInfoJobListResponse.RequestId = context.StringValue("QueryMediaInfoJobList.RequestId"); List <string> nonExistMediaInfoJobIds = new List <string>(); for (int i = 0; i < context.Length("QueryMediaInfoJobList.NonExistMediaInfoJobIds.Length"); i++) { nonExistMediaInfoJobIds.Add(context.StringValue("QueryMediaInfoJobList.NonExistMediaInfoJobIds[" + i + "]")); } queryMediaInfoJobListResponse.NonExistMediaInfoJobIds = nonExistMediaInfoJobIds; List <QueryMediaInfoJobListResponse.MediaInfoJob> mediaInfoJobList = new List <QueryMediaInfoJobListResponse.MediaInfoJob>(); for (int i = 0; i < context.Length("QueryMediaInfoJobList.MediaInfoJobList.Length"); i++) { QueryMediaInfoJobListResponse.MediaInfoJob mediaInfoJob = new QueryMediaInfoJobListResponse.MediaInfoJob(); mediaInfoJob.JobId = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].JobId"); mediaInfoJob.UserData = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].UserData"); mediaInfoJob.PipelineId = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].PipelineId"); mediaInfoJob.State = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].State"); mediaInfoJob.Code = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Code"); mediaInfoJob.Message = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Message"); mediaInfoJob.CreationTime = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].CreationTime"); QueryMediaInfoJobListResponse.MediaInfoJob.Input_ input = new QueryMediaInfoJobListResponse.MediaInfoJob.Input_(); input.Bucket = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Input.Bucket"); input.Location = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Input.Location"); input.Object = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Input.Object"); mediaInfoJob.Input = input; QueryMediaInfoJobListResponse.MediaInfoJob.Properties_ properties = new QueryMediaInfoJobListResponse.MediaInfoJob.Properties_(); properties.Width = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Width"); properties.Height = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Height"); properties.Bitrate = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Bitrate"); properties.Duration = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Duration"); properties.Fps = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Fps"); properties.FileSize = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.FileSize"); properties.FileFormat = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.FileFormat"); QueryMediaInfoJobListResponse.MediaInfoJob.Properties_.Streams_ streams = new QueryMediaInfoJobListResponse.MediaInfoJob.Properties_.Streams_(); List <QueryMediaInfoJobListResponse.MediaInfoJob.Properties_.Streams_.VideoStream> videoStreamList = new List <QueryMediaInfoJobListResponse.MediaInfoJob.Properties_.Streams_.VideoStream>(); for (int j = 0; j < context.Length("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.VideoStreamList.Length"); j++) { QueryMediaInfoJobListResponse.MediaInfoJob.Properties_.Streams_.VideoStream videoStream = new QueryMediaInfoJobListResponse.MediaInfoJob.Properties_.Streams_.VideoStream(); videoStream.Index = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.VideoStreamList[" + j + "].Index"); videoStream.CodecName = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.VideoStreamList[" + j + "].CodecName"); videoStream.CodecLongName = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.VideoStreamList[" + j + "].CodecLongName"); videoStream.Profile = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.VideoStreamList[" + j + "].Profile"); videoStream.CodecTimeBase = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.VideoStreamList[" + j + "].CodecTimeBase"); videoStream.CodecTagString = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.VideoStreamList[" + j + "].CodecTagString"); videoStream.CodecTag = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.VideoStreamList[" + j + "].CodecTag"); videoStream.Width = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.VideoStreamList[" + j + "].Width"); videoStream.Height = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.VideoStreamList[" + j + "].Height"); videoStream.HasBFrames = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.VideoStreamList[" + j + "].HasBFrames"); videoStream.Sar = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.VideoStreamList[" + j + "].Sar"); videoStream.Dar = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.VideoStreamList[" + j + "].Dar"); videoStream.PixFmt = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.VideoStreamList[" + j + "].PixFmt"); videoStream.Level = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.VideoStreamList[" + j + "].Level"); videoStream.Fps = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.VideoStreamList[" + j + "].Fps"); videoStream.AvgFPS = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.VideoStreamList[" + j + "].AvgFPS"); videoStream.Timebase = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.VideoStreamList[" + j + "].Timebase"); videoStream.StartTime = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.VideoStreamList[" + j + "].StartTime"); videoStream.Duration = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.VideoStreamList[" + j + "].Duration"); videoStream.Bitrate = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.VideoStreamList[" + j + "].Bitrate"); videoStream.NumFrames = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.VideoStreamList[" + j + "].NumFrames"); videoStream.Lang = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.VideoStreamList[" + j + "].Lang"); videoStream.Rotate = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.VideoStreamList[" + j + "].Rotate"); QueryMediaInfoJobListResponse.MediaInfoJob.Properties_.Streams_.VideoStream.NetworkCost_ networkCost = new QueryMediaInfoJobListResponse.MediaInfoJob.Properties_.Streams_.VideoStream.NetworkCost_(); networkCost.PreloadTime = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.VideoStreamList[" + j + "].NetworkCost.PreloadTime"); networkCost.CostBandwidth = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.VideoStreamList[" + j + "].NetworkCost.CostBandwidth"); networkCost.AvgBitrate = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.VideoStreamList[" + j + "].NetworkCost.AvgBitrate"); videoStream.NetworkCost = networkCost; videoStreamList.Add(videoStream); } streams.VideoStreamList = videoStreamList; List <QueryMediaInfoJobListResponse.MediaInfoJob.Properties_.Streams_.AudioStream> audioStreamList = new List <QueryMediaInfoJobListResponse.MediaInfoJob.Properties_.Streams_.AudioStream>(); for (int j = 0; j < context.Length("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.AudioStreamList.Length"); j++) { QueryMediaInfoJobListResponse.MediaInfoJob.Properties_.Streams_.AudioStream audioStream = new QueryMediaInfoJobListResponse.MediaInfoJob.Properties_.Streams_.AudioStream(); audioStream.Index = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.AudioStreamList[" + j + "].Index"); audioStream.CodecName = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.AudioStreamList[" + j + "].CodecName"); audioStream.CodecTimeBase = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.AudioStreamList[" + j + "].CodecTimeBase"); audioStream.CodecLongName = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.AudioStreamList[" + j + "].CodecLongName"); audioStream.CodecTagString = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.AudioStreamList[" + j + "].CodecTagString"); audioStream.CodecTag = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.AudioStreamList[" + j + "].CodecTag"); audioStream.SampleFmt = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.AudioStreamList[" + j + "].SampleFmt"); audioStream.Samplerate = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.AudioStreamList[" + j + "].Samplerate"); audioStream.Channels = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.AudioStreamList[" + j + "].Channels"); audioStream.ChannelLayout = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.AudioStreamList[" + j + "].ChannelLayout"); audioStream.Timebase = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.AudioStreamList[" + j + "].Timebase"); audioStream.StartTime = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.AudioStreamList[" + j + "].StartTime"); audioStream.Duration = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.AudioStreamList[" + j + "].Duration"); audioStream.Bitrate = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.AudioStreamList[" + j + "].Bitrate"); audioStream.NumFrames = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.AudioStreamList[" + j + "].NumFrames"); audioStream.Lang = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.AudioStreamList[" + j + "].Lang"); audioStreamList.Add(audioStream); } streams.AudioStreamList = audioStreamList; List <QueryMediaInfoJobListResponse.MediaInfoJob.Properties_.Streams_.SubtitleStream> subtitleStreamList = new List <QueryMediaInfoJobListResponse.MediaInfoJob.Properties_.Streams_.SubtitleStream>(); for (int j = 0; j < context.Length("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.SubtitleStreamList.Length"); j++) { QueryMediaInfoJobListResponse.MediaInfoJob.Properties_.Streams_.SubtitleStream subtitleStream = new QueryMediaInfoJobListResponse.MediaInfoJob.Properties_.Streams_.SubtitleStream(); subtitleStream.Index = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.SubtitleStreamList[" + j + "].Index"); subtitleStream.Lang = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Streams.SubtitleStreamList[" + j + "].Lang"); subtitleStreamList.Add(subtitleStream); } streams.SubtitleStreamList = subtitleStreamList; properties.Streams = streams; QueryMediaInfoJobListResponse.MediaInfoJob.Properties_.Format_ format = new QueryMediaInfoJobListResponse.MediaInfoJob.Properties_.Format_(); format.NumStreams = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Format.NumStreams"); format.NumPrograms = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Format.NumPrograms"); format.FormatName = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Format.FormatName"); format.FormatLongName = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Format.FormatLongName"); format.StartTime = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Format.StartTime"); format.Duration = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Format.Duration"); format.Size = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Format.Size"); format.Bitrate = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].Properties.Format.Bitrate"); properties.Format = format; mediaInfoJob.Properties = properties; QueryMediaInfoJobListResponse.MediaInfoJob.MNSMessageResult_ mNSMessageResult = new QueryMediaInfoJobListResponse.MediaInfoJob.MNSMessageResult_(); mNSMessageResult.MessageId = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].MNSMessageResult.MessageId"); mNSMessageResult.ErrorMessage = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].MNSMessageResult.ErrorMessage"); mNSMessageResult.ErrorCode = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList[" + i + "].MNSMessageResult.ErrorCode"); mediaInfoJob.MNSMessageResult = mNSMessageResult; mediaInfoJobList.Add(mediaInfoJob); } queryMediaInfoJobListResponse.MediaInfoJobList = mediaInfoJobList; return(queryMediaInfoJobListResponse); }
public static QueryMediaInfoJobListResponse Unmarshall(UnmarshallerContext context) { QueryMediaInfoJobListResponse queryMediaInfoJobListResponse = new QueryMediaInfoJobListResponse(); queryMediaInfoJobListResponse.HttpResponse = context.HttpResponse; queryMediaInfoJobListResponse.RequestId = context.StringValue("QueryMediaInfoJobList.RequestId"); List<string> nonExistMediaInfoJobIds = new List<string>(); for (int i = 0; i < context.Length("QueryMediaInfoJobList.NonExistMediaInfoJobIds.Length"); i++) { nonExistMediaInfoJobIds.Add(context.StringValue("QueryMediaInfoJobList.NonExistMediaInfoJobIds["+ i +"]")); } queryMediaInfoJobListResponse.NonExistMediaInfoJobIds = nonExistMediaInfoJobIds; List<QueryMediaInfoJobListResponse.MediaInfoJob> mediaInfoJobList = new List<QueryMediaInfoJobListResponse.MediaInfoJob>(); for (int i = 0; i < context.Length("QueryMediaInfoJobList.MediaInfoJobList.Length"); i++) { QueryMediaInfoJobListResponse.MediaInfoJob mediaInfoJob = new QueryMediaInfoJobListResponse.MediaInfoJob(); mediaInfoJob.JobId = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].JobId"); mediaInfoJob.UserData = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].UserData"); mediaInfoJob.PipelineId = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].PipelineId"); mediaInfoJob.State = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].State"); mediaInfoJob.Code = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Code"); mediaInfoJob.Message = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Message"); mediaInfoJob.CreationTime = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].CreationTime"); QueryMediaInfoJobListResponse.MediaInfoJob.Input_ input = new QueryMediaInfoJobListResponse.MediaInfoJob.Input_(); input.Bucket = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Input.Bucket"); input.Location = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Input.Location"); input.Object = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Input.Object"); mediaInfoJob.Input = input; QueryMediaInfoJobListResponse.MediaInfoJob.Properties_ properties = new QueryMediaInfoJobListResponse.MediaInfoJob.Properties_(); properties.Width = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Width"); properties.Height = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Height"); properties.Bitrate = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Bitrate"); properties.Duration = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Duration"); properties.Fps = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Fps"); properties.FileSize = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.FileSize"); properties.FileFormat = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.FileFormat"); QueryMediaInfoJobListResponse.MediaInfoJob.Properties_.Streams_ streams = new QueryMediaInfoJobListResponse.MediaInfoJob.Properties_.Streams_(); List<QueryMediaInfoJobListResponse.MediaInfoJob.Properties_.Streams_.VideoStream> videoStreamList = new List<QueryMediaInfoJobListResponse.MediaInfoJob.Properties_.Streams_.VideoStream>(); for (int j = 0; j < context.Length("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.VideoStreamList.Length"); j++) { QueryMediaInfoJobListResponse.MediaInfoJob.Properties_.Streams_.VideoStream videoStream = new QueryMediaInfoJobListResponse.MediaInfoJob.Properties_.Streams_.VideoStream(); videoStream.Index = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.VideoStreamList["+ j +"].Index"); videoStream.CodecName = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.VideoStreamList["+ j +"].CodecName"); videoStream.CodecLongName = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.VideoStreamList["+ j +"].CodecLongName"); videoStream.Profile = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.VideoStreamList["+ j +"].Profile"); videoStream.CodecTimeBase = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.VideoStreamList["+ j +"].CodecTimeBase"); videoStream.CodecTagString = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.VideoStreamList["+ j +"].CodecTagString"); videoStream.CodecTag = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.VideoStreamList["+ j +"].CodecTag"); videoStream.Width = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.VideoStreamList["+ j +"].Width"); videoStream.Height = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.VideoStreamList["+ j +"].Height"); videoStream.HasBFrames = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.VideoStreamList["+ j +"].HasBFrames"); videoStream.Sar = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.VideoStreamList["+ j +"].Sar"); videoStream.Dar = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.VideoStreamList["+ j +"].Dar"); videoStream.PixFmt = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.VideoStreamList["+ j +"].PixFmt"); videoStream.Level = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.VideoStreamList["+ j +"].Level"); videoStream.Fps = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.VideoStreamList["+ j +"].Fps"); videoStream.AvgFPS = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.VideoStreamList["+ j +"].AvgFPS"); videoStream.Timebase = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.VideoStreamList["+ j +"].Timebase"); videoStream.StartTime = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.VideoStreamList["+ j +"].StartTime"); videoStream.Duration = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.VideoStreamList["+ j +"].Duration"); videoStream.Bitrate = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.VideoStreamList["+ j +"].Bitrate"); videoStream.NumFrames = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.VideoStreamList["+ j +"].NumFrames"); videoStream.Lang = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.VideoStreamList["+ j +"].Lang"); videoStream.Rotate = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.VideoStreamList["+ j +"].Rotate"); QueryMediaInfoJobListResponse.MediaInfoJob.Properties_.Streams_.VideoStream.NetworkCost_ networkCost = new QueryMediaInfoJobListResponse.MediaInfoJob.Properties_.Streams_.VideoStream.NetworkCost_(); networkCost.PreloadTime = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.VideoStreamList["+ j +"].NetworkCost.PreloadTime"); networkCost.CostBandwidth = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.VideoStreamList["+ j +"].NetworkCost.CostBandwidth"); networkCost.AvgBitrate = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.VideoStreamList["+ j +"].NetworkCost.AvgBitrate"); videoStream.NetworkCost = networkCost; videoStreamList.Add(videoStream); } streams.VideoStreamList = videoStreamList; List<QueryMediaInfoJobListResponse.MediaInfoJob.Properties_.Streams_.AudioStream> audioStreamList = new List<QueryMediaInfoJobListResponse.MediaInfoJob.Properties_.Streams_.AudioStream>(); for (int j = 0; j < context.Length("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.AudioStreamList.Length"); j++) { QueryMediaInfoJobListResponse.MediaInfoJob.Properties_.Streams_.AudioStream audioStream = new QueryMediaInfoJobListResponse.MediaInfoJob.Properties_.Streams_.AudioStream(); audioStream.Index = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.AudioStreamList["+ j +"].Index"); audioStream.CodecName = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.AudioStreamList["+ j +"].CodecName"); audioStream.CodecTimeBase = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.AudioStreamList["+ j +"].CodecTimeBase"); audioStream.CodecLongName = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.AudioStreamList["+ j +"].CodecLongName"); audioStream.CodecTagString = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.AudioStreamList["+ j +"].CodecTagString"); audioStream.CodecTag = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.AudioStreamList["+ j +"].CodecTag"); audioStream.SampleFmt = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.AudioStreamList["+ j +"].SampleFmt"); audioStream.Samplerate = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.AudioStreamList["+ j +"].Samplerate"); audioStream.Channels = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.AudioStreamList["+ j +"].Channels"); audioStream.ChannelLayout = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.AudioStreamList["+ j +"].ChannelLayout"); audioStream.Timebase = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.AudioStreamList["+ j +"].Timebase"); audioStream.StartTime = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.AudioStreamList["+ j +"].StartTime"); audioStream.Duration = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.AudioStreamList["+ j +"].Duration"); audioStream.Bitrate = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.AudioStreamList["+ j +"].Bitrate"); audioStream.NumFrames = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.AudioStreamList["+ j +"].NumFrames"); audioStream.Lang = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.AudioStreamList["+ j +"].Lang"); audioStreamList.Add(audioStream); } streams.AudioStreamList = audioStreamList; List<QueryMediaInfoJobListResponse.MediaInfoJob.Properties_.Streams_.SubtitleStream> subtitleStreamList = new List<QueryMediaInfoJobListResponse.MediaInfoJob.Properties_.Streams_.SubtitleStream>(); for (int j = 0; j < context.Length("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.SubtitleStreamList.Length"); j++) { QueryMediaInfoJobListResponse.MediaInfoJob.Properties_.Streams_.SubtitleStream subtitleStream = new QueryMediaInfoJobListResponse.MediaInfoJob.Properties_.Streams_.SubtitleStream(); subtitleStream.Index = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.SubtitleStreamList["+ j +"].Index"); subtitleStream.Lang = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Streams.SubtitleStreamList["+ j +"].Lang"); subtitleStreamList.Add(subtitleStream); } streams.SubtitleStreamList = subtitleStreamList; properties.Streams = streams; QueryMediaInfoJobListResponse.MediaInfoJob.Properties_.Format_ format = new QueryMediaInfoJobListResponse.MediaInfoJob.Properties_.Format_(); format.NumStreams = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Format.NumStreams"); format.NumPrograms = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Format.NumPrograms"); format.FormatName = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Format.FormatName"); format.FormatLongName = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Format.FormatLongName"); format.StartTime = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Format.StartTime"); format.Duration = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Format.Duration"); format.Size = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Format.Size"); format.Bitrate = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].Properties.Format.Bitrate"); properties.Format = format; mediaInfoJob.Properties = properties; QueryMediaInfoJobListResponse.MediaInfoJob.MNSMessageResult_ mNSMessageResult = new QueryMediaInfoJobListResponse.MediaInfoJob.MNSMessageResult_(); mNSMessageResult.MessageId = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].MNSMessageResult.MessageId"); mNSMessageResult.ErrorMessage = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].MNSMessageResult.ErrorMessage"); mNSMessageResult.ErrorCode = context.StringValue("QueryMediaInfoJobList.MediaInfoJobList["+ i +"].MNSMessageResult.ErrorCode"); mediaInfoJob.MNSMessageResult = mNSMessageResult; mediaInfoJobList.Add(mediaInfoJob); } queryMediaInfoJobListResponse.MediaInfoJobList = mediaInfoJobList; return queryMediaInfoJobListResponse; }