Exemple #1
0
        public static EstimateTemplateCostResultUnmarshaller GetInstance()
        {
            if (instance == null)
            {
                instance = new EstimateTemplateCostResultUnmarshaller();
            }

            return(instance);
        }
Exemple #2
0
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            EstimateTemplateCostResponse response = new EstimateTemplateCostResponse();

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


            return(response);
        }