public static SpotDatafeedSubscriptionUnmarshaller GetInstance() { if (instance == null) { instance = new SpotDatafeedSubscriptionUnmarshaller(); } return(instance); }
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { CreateSpotDatafeedSubscriptionResponse response = new CreateSpotDatafeedSubscriptionResponse(); int targetDepth = 2; while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("spotDatafeedSubscription", targetDepth)) { response.SpotDatafeedSubscription = SpotDatafeedSubscriptionUnmarshaller.GetInstance().Unmarshall(context); continue; } } } return(response); }