public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { DescribeSnapshotAttributeResponse response = new DescribeSnapshotAttributeResponse(); int targetDepth = 2; while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("snapshotId", targetDepth)) { response.SnapshotId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("createVolumePermission/item", targetDepth)) { response.CreateVolumePermissions.Add(CreateVolumePermissionUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("productCodes/item", targetDepth)) { response.ProductCodes.Add(ProductCodeUnmarshaller.GetInstance().Unmarshall(context)); continue; } } } return(response); }
public static CreateVolumePermissionUnmarshaller GetInstance() { if (instance == null) { instance = new CreateVolumePermissionUnmarshaller(); } return(instance); }