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

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

            int targetDepth = 2;

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("vpnGateway", targetDepth))
                    {
                        response.VpnGateway = VpnGatewayUnmarshaller.GetInstance().Unmarshall(context);

                        continue;
                    }
                }
            }


            return(response);
        }