public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
{
UnassignIpv6AddressesResponse response = new UnassignIpv6AddressesResponse();
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth = 2;
while (context.ReadAtDepth(originalDepth))
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("networkInterfaceId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NetworkInterfaceId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("unassignedIpv6Addresses/item", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
var item = unmarshaller.Unmarshall(context);
response.UnassignedIpv6Addresses.Add(item);
continue;
}
}
}
return response;
}