private static void UnmarshallResult(XmlUnmarshallerContext context, DescribeEnvironmentManagedActionHistoryResponse response)
{
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("ManagedActionHistoryItems/member", targetDepth))
{
var unmarshaller = ManagedActionHistoryItemUnmarshaller.Instance;
var item = unmarshaller.Unmarshall(context);
response.ManagedActionHistoryItems.Add(item);
continue;
}
if (context.TestExpression("NextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
}
}
return;
}