예제 #1
0
        private static void UnmarshallResult(XmlUnmarshallerContext context, ListCloudFrontOriginAccessIdentitiesResponse response)
        {
            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

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

                        continue;
                    }
                }
                else if (context.IsEndElement && context.CurrentDepth < originalDepth)
                {
                    return;
                }
            }



            return;
        }
예제 #2
0
        public static CloudFrontOriginAccessIdentityListUnmarshaller GetInstance()
        {
            if (instance == null)
            {
                instance = new CloudFrontOriginAccessIdentityListUnmarshaller();
            }

            return(instance);
        }
        public ListCloudFrontOriginAccessIdentitiesResult Unmarshall(XmlUnmarshallerContext context)
        {
            ListCloudFrontOriginAccessIdentitiesResult listCloudFrontOriginAccessIdentitiesResult = new ListCloudFrontOriginAccessIdentitiesResult();
            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("CloudFrontOriginAccessIdentityList", targetDepth))
                    {
                        listCloudFrontOriginAccessIdentitiesResult.CloudFrontOriginAccessIdentityList = CloudFrontOriginAccessIdentityListUnmarshaller.GetInstance().Unmarshall(context);

                        continue;
                    }
                }
                else if (context.IsEndElement && context.CurrentDepth < originalDepth)
                {
                    return(listCloudFrontOriginAccessIdentitiesResult);
                }
            }



            return(listCloudFrontOriginAccessIdentitiesResult);
        }