Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
 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);
 }