コード例 #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();
 }
コード例 #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);
 }