コード例 #1
0
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            DescribeVolumeStatusResponse response = new DescribeVolumeStatusResponse();

            int targetDepth = 2;

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("volumeStatusSet/item", targetDepth))
                    {
                        response.VolumeStatuses.Add(VolumeStatusItemUnmarshaller.GetInstance().Unmarshall(context));

                        continue;
                    }
                    if (context.TestExpression("nextToken", targetDepth))
                    {
                        response.NextToken = StringUnmarshaller.GetInstance().Unmarshall(context);

                        continue;
                    }
                }
            }


            return(response);
        }
コード例 #2
0
        public static VolumeStatusItemUnmarshaller GetInstance()
        {
            if (instance == null)
            {
                instance = new VolumeStatusItemUnmarshaller();
            }

            return(instance);
        }