public static DescribeRecordsResponse Unmarshall(UnmarshallerContext _ctx) { DescribeRecordsResponse describeRecordsResponse = new DescribeRecordsResponse(); describeRecordsResponse.HttpResponse = _ctx.HttpResponse; describeRecordsResponse.RequestId = _ctx.StringValue("DescribeRecords.RequestId"); List <DescribeRecordsResponse.DescribeRecords_Record> describeRecordsResponse_records = new List <DescribeRecordsResponse.DescribeRecords_Record>(); for (int i = 0; i < _ctx.Length("DescribeRecords.Records.Length"); i++) { DescribeRecordsResponse.DescribeRecords_Record record = new DescribeRecordsResponse.DescribeRecords_Record(); record.RecordId = _ctx.StringValue("DescribeRecords.Records[" + i + "].RecordId"); record.AppId = _ctx.StringValue("DescribeRecords.Records[" + i + "].AppId"); record.BoardId = _ctx.IntegerValue("DescribeRecords.Records[" + i + "].BoardId"); record.RecordStartTime = _ctx.LongValue("DescribeRecords.Records[" + i + "].RecordStartTime"); record.StartTime = _ctx.LongValue("DescribeRecords.Records[" + i + "].StartTime"); record.EndTime = _ctx.LongValue("DescribeRecords.Records[" + i + "].EndTime"); record.State = _ctx.IntegerValue("DescribeRecords.Records[" + i + "].State"); record.OssPath = _ctx.StringValue("DescribeRecords.Records[" + i + "].OssPath"); record.OssBucket = _ctx.StringValue("DescribeRecords.Records[" + i + "].OssBucket"); record.OssEndpoint = _ctx.StringValue("DescribeRecords.Records[" + i + "].OssEndpoint"); describeRecordsResponse_records.Add(record); } describeRecordsResponse.Records = describeRecordsResponse_records; return(describeRecordsResponse); }
public static DescribeRecordsResponse Unmarshall(UnmarshallerContext context) { DescribeRecordsResponse describeRecordsResponse = new DescribeRecordsResponse(); describeRecordsResponse.HttpResponse = context.HttpResponse; describeRecordsResponse.RequestId = context.StringValue("DescribeRecords.RequestId"); describeRecordsResponse.PageSize = context.LongValue("DescribeRecords.PageSize"); describeRecordsResponse.PageNum = context.LongValue("DescribeRecords.PageNum"); describeRecordsResponse.PageCount = context.LongValue("DescribeRecords.PageCount"); describeRecordsResponse.TotalCount = context.LongValue("DescribeRecords.TotalCount"); describeRecordsResponse.NextStartTime = context.StringValue("DescribeRecords.NextStartTime"); List <DescribeRecordsResponse.DescribeRecords_Record> describeRecordsResponse_records = new List <DescribeRecordsResponse.DescribeRecords_Record>(); for (int i = 0; i < context.Length("DescribeRecords.Records.Length"); i++) { DescribeRecordsResponse.DescribeRecords_Record record = new DescribeRecordsResponse.DescribeRecords_Record(); record.Id = context.StringValue("DescribeRecords.Records[" + i + "].Id"); record.StreamId = context.StringValue("DescribeRecords.Records[" + i + "].StreamId"); record.TemplateId = context.StringValue("DescribeRecords.Records[" + i + "].TemplateId"); record.Type = context.StringValue("DescribeRecords.Records[" + i + "].Type"); record.Url = context.StringValue("DescribeRecords.Records[" + i + "].Url"); record.FileFormat = context.StringValue("DescribeRecords.Records[" + i + "].FileFormat"); record.OssBucket = context.StringValue("DescribeRecords.Records[" + i + "].OssBucket"); record.OssObject = context.StringValue("DescribeRecords.Records[" + i + "].OssObject"); record.OssEndpoint = context.StringValue("DescribeRecords.Records[" + i + "].OssEndpoint"); record.StartTime = context.StringValue("DescribeRecords.Records[" + i + "].StartTime"); record.EndTime = context.StringValue("DescribeRecords.Records[" + i + "].EndTime"); record.Height = context.LongValue("DescribeRecords.Records[" + i + "].Height"); record.Width = context.LongValue("DescribeRecords.Records[" + i + "].Width"); describeRecordsResponse_records.Add(record); } describeRecordsResponse.Records = describeRecordsResponse_records; return(describeRecordsResponse); }