public ReviewDetails findReview(String hotelId) { String reviewsURL = Environments.getReviewsURL(hotelId); String rs = HttpClientUtils.getResult(reviewsURL); HotelReviews hotelReviews = JsonUtils.unmarshal(rs, HotelReviews.class); return hotelReviews.getReviewDetails(); }
public HotelSearchSummary search(HotelSearchRQ rq) { String hotelSearchURL = Environments.getHotelSearchURL(rq.getLocation(), rq.getRadius(), rq.getDates()); String rs = HttpClientUtils.getResult(hotelSearchURL); return JsonUtils.unmarshal(rs, HotelSearchSummary.class); }