public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { DescribeSpotPriceHistoryResponse response = new DescribeSpotPriceHistoryResponse(); int targetDepth = 2; while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("spotPriceHistorySet/item", targetDepth)) { response.SpotPriceHistory.Add(SpotPriceUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("nextToken", targetDepth)) { response.NextToken = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } } } return(response); }
public static SpotPriceUnmarshaller GetInstance() { if (instance == null) { instance = new SpotPriceUnmarshaller(); } return(instance); }