public AwsCart ToCart() { var cart = new AwsCart { CartId = parser.SelectNodeValue(NodePath.CartCreateResponse.CartId), HMAC = parser.SelectNodeValue(NodePath.CartCreateResponse.HMAC), PurchaseURL = parser.SelectNodeValue(NodePath.CartCreateResponse.PurchaseURL), Subtotal = XmlHelper.GetDollars(parser.SelectNode(NodePath.CartCreateResponse.SubTotal)), URLEncodedHMAC = parser.SelectNodeValue(NodePath.CartCreateResponse.URLEncodedHMAC), CartItems = GetCartItems() }; return(cart); }
public AwsItem ToAwsItem() { var item = new AwsItem { ASIN = parser.SelectNodeValue(NodePath.ItemLookupResponse.ASIN), DetailPageURL = parser.SelectNodeValue(NodePath.ItemLookupResponse.DetailPageUrl), SalesRank = XmlHelper.GetInt(parser.SelectNodeValue(NodePath.ItemLookupResponse.SalesRank)), ReviewIFrameUrl = parser.SelectNodeValue(NodePath.ItemLookupResponse.ReviewIFrameUrl), Links = GetLinks(), ImageSets = GetImageSets(), ItemAttributes = GetItemAttributes(), Reviews = GetReviews(), SimilarProducts = GetSimilarProducts(), OfferPrice = XmlHelper.GetDollars(parser.SelectNode(NodePath.ItemLookupResponse.OfferPrice)), ListPrice = XmlHelper.GetDollars(parser.SelectNode(NodePath.ItemLookupResponse.ListPrice)), LowestOfferPrice = XmlHelper.GetDollars(parser.SelectNode(NodePath.ItemLookupResponse.LowestOfferPrice)) }; return(item); }