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

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

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


            return(response);
        }