Exemplo n.º 1
0
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            AttachClassicLinkVpcResponse response = new AttachClassicLinkVpcResponse();

            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth = 2;
            }

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("return", targetDepth))
                    {
                        var unmarshaller = BoolUnmarshaller.Instance;
                        response.Return = unmarshaller.Unmarshall(context);
                        continue;
                    }
                }
            }

            return(response);
        }
Exemplo n.º 2
0
        public static AttachClassicLinkVpcResponse Unmarshall(UnmarshallerContext _ctx)
        {
            AttachClassicLinkVpcResponse attachClassicLinkVpcResponse = new AttachClassicLinkVpcResponse();

            attachClassicLinkVpcResponse.HttpResponse = _ctx.HttpResponse;
            attachClassicLinkVpcResponse.RequestId    = _ctx.StringValue("AttachClassicLinkVpc.RequestId");

            return(attachClassicLinkVpcResponse);
        }