private static void UnmarshallResult(XmlUnmarshallerContext context, DescribeChangeSetResponse 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("Capabilities/member", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
var item = unmarshaller.Unmarshall(context);
response.Capabilities.Add(item);
continue;
}
if (context.TestExpression("Changes/member", targetDepth))
{
var unmarshaller = ChangeUnmarshaller.Instance;
var item = unmarshaller.Unmarshall(context);
response.Changes.Add(item);
continue;
}
if (context.TestExpression("ChangeSetId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ChangeSetId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ChangeSetName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ChangeSetName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CreationTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
response.CreationTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Description", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Description = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ExecutionStatus", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ExecutionStatus = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("NextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("NotificationARNs/member", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
var item = unmarshaller.Unmarshall(context);
response.NotificationARNs.Add(item);
continue;
}
if (context.TestExpression("Parameters/member", targetDepth))
{
var unmarshaller = ParameterUnmarshaller.Instance;
var item = unmarshaller.Unmarshall(context);
response.Parameters.Add(item);
continue;
}
if (context.TestExpression("StackId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.StackId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("StackName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.StackName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Status", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Status = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("StatusReason", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.StatusReason = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Tags/member", targetDepth))
{
var unmarshaller = TagUnmarshaller.Instance;
var item = unmarshaller.Unmarshall(context);
response.Tags.Add(item);
continue;
}
}
}
return;
}