public static SnapshotUnmarshaller GetInstance() { if (instance == null) { instance = new SnapshotUnmarshaller(); } return(instance); }
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { DescribeSnapshotsResponse response = new DescribeSnapshotsResponse(); int targetDepth = 2; while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("snapshotSet/item", targetDepth)) { response.Snapshots.Add(SnapshotUnmarshaller.GetInstance().Unmarshall(context)); continue; } } } return(response); }