Aliyun.Acs.Cdn.Transform.V20141111.DescribeLiveStreamRecordContentResponseUnmarshaller.Unmarshall C# (CSharp) Метод

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

public static Unmarshall ( UnmarshallerContext context ) : DescribeLiveStreamRecordContentResponse
context UnmarshallerContext
Результат 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;
        }
DescribeLiveStreamRecordContentResponseUnmarshaller