示例#1
0
        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            AttachNetworkInterfaceResponse response = new AttachNetworkInterfaceResponse();

            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("attachmentId", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.AttachmentId = unmarshaller.Unmarshall(context);
                        continue;
                    }
                }
            }

            return(response);
        }
示例#2
0
        public static AttachNetworkInterfaceResponse Unmarshall(UnmarshallerContext _ctx)
        {
            AttachNetworkInterfaceResponse attachNetworkInterfaceResponse = new AttachNetworkInterfaceResponse();

            attachNetworkInterfaceResponse.HttpResponse = _ctx.HttpResponse;
            attachNetworkInterfaceResponse.RequestId    = _ctx.StringValue("AttachNetworkInterface.RequestId");

            return(attachNetworkInterfaceResponse);
        }
        public static AttachNetworkInterfaceResponse Unmarshall(UnmarshallerContext context)
        {
			AttachNetworkInterfaceResponse attachNetworkInterfaceResponse = new AttachNetworkInterfaceResponse();

			attachNetworkInterfaceResponse.HttpResponse = context.HttpResponse;
			attachNetworkInterfaceResponse.RequestId = context.StringValue("AttachNetworkInterface.RequestId");
        
			return attachNetworkInterfaceResponse;
        }
示例#4
0
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            AttachNetworkInterfaceResponse response = new AttachNetworkInterfaceResponse();

            int targetDepth = 2;

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("attachmentId", targetDepth))
                    {
                        response.AttachmentId = StringUnmarshaller.GetInstance().Unmarshall(context);

                        continue;
                    }
                }
            }


            return(response);
        }