public static DescribeLiveRecordConfigResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeLiveRecordConfigResponse describeLiveRecordConfigResponse = new DescribeLiveRecordConfigResponse();

            describeLiveRecordConfigResponse.HttpResponse = context.HttpResponse;
            describeLiveRecordConfigResponse.RequestId    = context.StringValue("DescribeLiveRecordConfig.RequestId");

            List <DescribeLiveRecordConfigResponse.LiveAppRecord> liveAppRecordList = new List <DescribeLiveRecordConfigResponse.LiveAppRecord>();

            for (int i = 0; i < context.Length("DescribeLiveRecordConfig.LiveAppRecordList.Length"); i++)
            {
                DescribeLiveRecordConfigResponse.LiveAppRecord liveAppRecord = new DescribeLiveRecordConfigResponse.LiveAppRecord();
                liveAppRecord.DomainName      = context.StringValue("DescribeLiveRecordConfig.LiveAppRecordList[" + i + "].DomainName");
                liveAppRecord.AppName         = context.StringValue("DescribeLiveRecordConfig.LiveAppRecordList[" + i + "].AppName");
                liveAppRecord.OssEndpoint     = context.StringValue("DescribeLiveRecordConfig.LiveAppRecordList[" + i + "].OssEndpoint");
                liveAppRecord.OssBucket       = context.StringValue("DescribeLiveRecordConfig.LiveAppRecordList[" + i + "].OssBucket");
                liveAppRecord.OssObjectPrefix = context.StringValue("DescribeLiveRecordConfig.LiveAppRecordList[" + i + "].OssObjectPrefix");
                liveAppRecord.CreateTime      = context.StringValue("DescribeLiveRecordConfig.LiveAppRecordList[" + i + "].CreateTime");

                liveAppRecordList.Add(liveAppRecord);
            }
            describeLiveRecordConfigResponse.LiveAppRecordList = liveAppRecordList;

            return(describeLiveRecordConfigResponse);
        }
Example #2
0
        public static DescribeLiveRecordConfigResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeLiveRecordConfigResponse describeLiveRecordConfigResponse = new DescribeLiveRecordConfigResponse()
            {
                HttpResponse = context.HttpResponse,
                RequestId    = context.StringValue("DescribeLiveRecordConfig.RequestId"),
                PageNum      = context.IntegerValue("DescribeLiveRecordConfig.PageNum"),
                PageSize     = context.IntegerValue("DescribeLiveRecordConfig.PageSize"),
                Order        = context.StringValue("DescribeLiveRecordConfig.Order"),
                TotalNum     = context.IntegerValue("DescribeLiveRecordConfig.TotalNum"),
                TotalPage    = context.IntegerValue("DescribeLiveRecordConfig.TotalPage")
            };
            List <DescribeLiveRecordConfigResponse.LiveAppRecord> liveAppRecordList = new List <DescribeLiveRecordConfigResponse.LiveAppRecord>();

            for (int i = 0; i < context.Length("DescribeLiveRecordConfig.LiveAppRecordList.Length"); i++)
            {
                DescribeLiveRecordConfigResponse.LiveAppRecord liveAppRecord = new DescribeLiveRecordConfigResponse.LiveAppRecord()
                {
                    DomainName  = context.StringValue($"DescribeLiveRecordConfig.LiveAppRecordList[{i}].DomainName"),
                    AppName     = context.StringValue($"DescribeLiveRecordConfig.LiveAppRecordList[{i}].AppName"),
                    OssEndpoint = context.StringValue($"DescribeLiveRecordConfig.LiveAppRecordList[{i}].OssEndpoint"),
                    OssBucket   = context.StringValue($"DescribeLiveRecordConfig.LiveAppRecordList[{i}].OssBucket"),
                    CreateTime  = context.StringValue($"DescribeLiveRecordConfig.LiveAppRecordList[{i}].CreateTime")
                };
                List <DescribeLiveRecordConfigResponse.LiveAppRecord.RecordFormat> recordFormatList = new List <DescribeLiveRecordConfigResponse.LiveAppRecord.RecordFormat>();
                for (int j = 0; j < context.Length($"DescribeLiveRecordConfig.LiveAppRecordList[{i}].RecordFormatList.Length"); j++)
                {
                    DescribeLiveRecordConfigResponse.LiveAppRecord.RecordFormat recordFormat = new DescribeLiveRecordConfigResponse.LiveAppRecord.RecordFormat()
                    {
                        Format               = context.StringValue($"DescribeLiveRecordConfig.LiveAppRecordList[{i}].RecordFormatList[{j}].Format"),
                        OssObjectPrefix      = context.StringValue($"DescribeLiveRecordConfig.LiveAppRecordList[{i}].RecordFormatList[{j}].OssObjectPrefix"),
                        SliceOssObjectPrefix = context.StringValue($"DescribeLiveRecordConfig.LiveAppRecordList[{i}].RecordFormatList[{j}].SliceOssObjectPrefix")
                    };
                    recordFormatList.Add(recordFormat);
                }
                liveAppRecord.RecordFormatList = recordFormatList;

                liveAppRecordList.Add(liveAppRecord);
            }
            describeLiveRecordConfigResponse.LiveAppRecordList = liveAppRecordList;

            return(describeLiveRecordConfigResponse);
        }