A complex type that contains the response to a TestDNSAnswer request.
Inheritance: Amazon.Runtime.AmazonWebServiceResponse
 /// <summary>
 /// Unmarshaller the response from the service to the response class.
 /// </summary>  
 /// <param name="context"></param>
 /// <returns></returns>
 public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
 {
     TestDNSAnswerResponse response = new TestDNSAnswerResponse();
     UnmarshallResult(context,response);
     
     return response;
 }        
        private static void UnmarshallResult(XmlUnmarshallerContext context, TestDNSAnswerResponse response)
        {
            int originalDepth = context.CurrentDepth;
            int targetDepth = originalDepth + 1;
            if (context.IsStartOfDocument) 
                   targetDepth += 1;

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("Nameserver", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.Nameserver = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("RecordName", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.RecordName = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("RecordType", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.RecordType = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("RecordData/RecordDataEntry", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.RecordData.Add(unmarshaller.Unmarshall(context));
                        continue;
                    }
                    if (context.TestExpression("ResponseCode", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.ResponseCode = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("Protocol", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.Protocol = unmarshaller.Unmarshall(context);
                        continue;
                    }
                }
                else if (context.IsEndElement && context.CurrentDepth < originalDepth)
                {
                    return;
                }
            }
          
            return;
        }