Amazon.ElasticBeanstalk.Model.Internal.MarshallTransformations.DescribeApplicationVersionsResponseUnmarshaller.UnmarshallResult C# (CSharp) Method

UnmarshallResult() private static method

private static UnmarshallResult ( Amazon.Runtime.Internal.Transform.XmlUnmarshallerContext context, DescribeApplicationVersionsResponse response ) : void
context Amazon.Runtime.Internal.Transform.XmlUnmarshallerContext
response Amazon.ElasticBeanstalk.Model.DescribeApplicationVersionsResponse
return void
        private static void UnmarshallResult(XmlUnmarshallerContext context, DescribeApplicationVersionsResponse response)
        {
            
            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("ApplicationVersions/member", targetDepth))
                    {
                        var unmarshaller = ApplicationVersionDescriptionUnmarshaller.Instance;
                        var item = unmarshaller.Unmarshall(context);
                        response.ApplicationVersions.Add(item);
                        continue;
                    }
                    if (context.TestExpression("NextToken", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.NextToken = unmarshaller.Unmarshall(context);
                        continue;
                    }
                } 
           }

            return;
        }
DescribeApplicationVersionsResponseUnmarshaller