public static DescribeDomainRecordsResponse Unmarshall(UnmarshallerContext context)
{
DescribeDomainRecordsResponse describeDomainRecordsResponse = new DescribeDomainRecordsResponse();
describeDomainRecordsResponse.HttpResponse = context.HttpResponse;
describeDomainRecordsResponse.RequestId = context.StringValue("DescribeDomainRecords.RequestId");
describeDomainRecordsResponse.TotalCount = context.LongValue("DescribeDomainRecords.TotalCount");
describeDomainRecordsResponse.PageNumber = context.LongValue("DescribeDomainRecords.PageNumber");
describeDomainRecordsResponse.PageSize = context.LongValue("DescribeDomainRecords.PageSize");
List<DescribeDomainRecordsResponse.Record> domainRecords = new List<DescribeDomainRecordsResponse.Record>();
for (int i = 0; i < context.Length("DescribeDomainRecords.DomainRecords.Length"); i++) {
DescribeDomainRecordsResponse.Record record = new DescribeDomainRecordsResponse.Record();
record.DomainName = context.StringValue("DescribeDomainRecords.DomainRecords["+ i +"].DomainName");
record.RecordId = context.StringValue("DescribeDomainRecords.DomainRecords["+ i +"].RecordId");
record.RR = context.StringValue("DescribeDomainRecords.DomainRecords["+ i +"].RR");
record.Type = context.StringValue("DescribeDomainRecords.DomainRecords["+ i +"].Type");
record.Value = context.StringValue("DescribeDomainRecords.DomainRecords["+ i +"].Value");
record.TTL = context.LongValue("DescribeDomainRecords.DomainRecords["+ i +"].TTL");
record.Priority = context.LongValue("DescribeDomainRecords.DomainRecords["+ i +"].Priority");
record.Line = context.StringValue("DescribeDomainRecords.DomainRecords["+ i +"].Line");
record.Status = context.StringValue("DescribeDomainRecords.DomainRecords["+ i +"].Status");
record.Locked = context.BooleanValue("DescribeDomainRecords.DomainRecords["+ i +"].Locked");
record.Weight = context.IntegerValue("DescribeDomainRecords.DomainRecords["+ i +"].Weight");
domainRecords.Add(record);
}
describeDomainRecordsResponse.DomainRecords = domainRecords;
return describeDomainRecordsResponse;
}