public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
GetDiscoverySummaryResponse response = new GetDiscoverySummaryResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("agentSummary", targetDepth))
{
var unmarshaller = CustomerAgentInfoUnmarshaller.Instance;
response.AgentSummary = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("applications", targetDepth))
{
var unmarshaller = LongUnmarshaller.Instance;
response.Applications = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("connectorSummary", targetDepth))
{
var unmarshaller = CustomerConnectorInfoUnmarshaller.Instance;
response.ConnectorSummary = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("servers", targetDepth))
{
var unmarshaller = LongUnmarshaller.Instance;
response.Servers = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("serversMappedToApplications", targetDepth))
{
var unmarshaller = LongUnmarshaller.Instance;
response.ServersMappedToApplications = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("serversMappedtoTags", targetDepth))
{
var unmarshaller = LongUnmarshaller.Instance;
response.ServersMappedtoTags = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}