public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { var response = new GetBucketPolicyStatusResponse(); UnmarshallResult(context,response); return response; }
private static void UnmarshallResult(XmlUnmarshallerContext context, GetBucketPolicyStatusResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("PolicyStatus", targetDepth)) { response.PolicyStatus = PolicyStatusUnmarshaller.Instance.Unmarshall(context); } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return; } } }