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

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

            int targetDepth = 2;

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("routeTableSet/item", targetDepth))
                    {
                        response.RouteTables.Add(RouteTableUnmarshaller.GetInstance().Unmarshall(context));

                        continue;
                    }
                }
            }


            return(response);
        }