public static DescribeLiveStreamRecordContentResponse Unmarshall(UnmarshallerContext context) { DescribeLiveStreamRecordContentResponse describeLiveStreamRecordContentResponse = new DescribeLiveStreamRecordContentResponse() { HttpResponse = context.HttpResponse, RequestId = context.StringValue("DescribeLiveStreamRecordContent.RequestId") }; List <DescribeLiveStreamRecordContentResponse.RecordContentInfo> recordContentInfoList = new List <DescribeLiveStreamRecordContentResponse.RecordContentInfo>(); for (int i = 0; i < context.Length("DescribeLiveStreamRecordContent.RecordContentInfoList.Length"); i++) { DescribeLiveStreamRecordContentResponse.RecordContentInfo recordContentInfo = new DescribeLiveStreamRecordContentResponse.RecordContentInfo() { OssEndpoint = context.StringValue($"DescribeLiveStreamRecordContent.RecordContentInfoList[{i}].OssEndpoint"), OssBucket = context.StringValue($"DescribeLiveStreamRecordContent.RecordContentInfoList[{i}].OssBucket"), OssObjectPrefix = context.StringValue($"DescribeLiveStreamRecordContent.RecordContentInfoList[{i}].OssObjectPrefix"), StartTime = context.StringValue($"DescribeLiveStreamRecordContent.RecordContentInfoList[{i}].StartTime"), EndTime = context.StringValue($"DescribeLiveStreamRecordContent.RecordContentInfoList[{i}].EndTime"), Duration = context.FloatValue($"DescribeLiveStreamRecordContent.RecordContentInfoList[{i}].Duration") }; recordContentInfoList.Add(recordContentInfo); } describeLiveStreamRecordContentResponse.RecordContentInfoList = recordContentInfoList; return(describeLiveStreamRecordContentResponse); }
public static DescribeLiveStreamRecordContentResponse Unmarshall(UnmarshallerContext context) { DescribeLiveStreamRecordContentResponse describeLiveStreamRecordContentResponse = new DescribeLiveStreamRecordContentResponse(); describeLiveStreamRecordContentResponse.HttpResponse = context.HttpResponse; describeLiveStreamRecordContentResponse.RequestId = context.StringValue("DescribeLiveStreamRecordContent.RequestId"); List<DescribeLiveStreamRecordContentResponse.RecordContentInfo> recordContentInfoList = new List<DescribeLiveStreamRecordContentResponse.RecordContentInfo>(); for (int i = 0; i < context.Length("DescribeLiveStreamRecordContent.RecordContentInfoList.Length"); i++) { DescribeLiveStreamRecordContentResponse.RecordContentInfo recordContentInfo = new DescribeLiveStreamRecordContentResponse.RecordContentInfo(); recordContentInfo.OssEndpoint = context.StringValue("DescribeLiveStreamRecordContent.RecordContentInfoList["+ i +"].OssEndpoint"); recordContentInfo.OssBucket = context.StringValue("DescribeLiveStreamRecordContent.RecordContentInfoList["+ i +"].OssBucket"); recordContentInfo.OssObjectPrefix = context.StringValue("DescribeLiveStreamRecordContent.RecordContentInfoList["+ i +"].OssObjectPrefix"); recordContentInfo.StartTime = context.StringValue("DescribeLiveStreamRecordContent.RecordContentInfoList["+ i +"].StartTime"); recordContentInfo.EndTime = context.StringValue("DescribeLiveStreamRecordContent.RecordContentInfoList["+ i +"].EndTime"); recordContentInfo.Duration = context.FloatValue("DescribeLiveStreamRecordContent.RecordContentInfoList["+ i +"].Duration"); recordContentInfoList.Add(recordContentInfo); } describeLiveStreamRecordContentResponse.RecordContentInfoList = recordContentInfoList; return describeLiveStreamRecordContentResponse; }