public static SendEmailResultUnmarshaller GetInstance()
        {
            if (instance == null)
            {
                instance = new SendEmailResultUnmarshaller();
            }

            return(instance);
        }
Пример #2
0
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            SendEmailResponse response = new SendEmailResponse();

            while (context.Read())
            {
                if (context.IsStartElement)
                {
                    if (context.TestExpression("SendEmailResult", 2))
                    {
                        response.SendEmailResult = SendEmailResultUnmarshaller.GetInstance().Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("ResponseMetadata", 2))
                    {
                        response.ResponseMetadata = ResponseMetadataUnmarshaller.GetInstance().Unmarshall(context);
                    }
                }
            }


            return(response);
        }