public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
{
ImportSnapshotResponse response = new ImportSnapshotResponse();
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("description", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Description = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("importTaskId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ImportTaskId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("snapshotTaskDetail", targetDepth))
{
var unmarshaller = SnapshotTaskDetailUnmarshaller.Instance;
response.SnapshotTaskDetail = unmarshaller.Unmarshall(context);
continue;
}
}
}
return response;
}