diff options
Diffstat (limited to 'sandbox/travelsample/hotel-contribution/src/scatours')
-rw-r--r-- | sandbox/travelsample/hotel-contribution/src/scatours/hotel/HotelImpl.java | 20 | ||||
-rw-r--r-- | sandbox/travelsample/hotel-contribution/src/scatours/hotel/HotelInfo.java | 44 |
2 files changed, 64 insertions, 0 deletions
diff --git a/sandbox/travelsample/hotel-contribution/src/scatours/hotel/HotelImpl.java b/sandbox/travelsample/hotel-contribution/src/scatours/hotel/HotelImpl.java index 769cbcaed7..ac02c31e59 100644 --- a/sandbox/travelsample/hotel-contribution/src/scatours/hotel/HotelImpl.java +++ b/sandbox/travelsample/hotel-contribution/src/scatours/hotel/HotelImpl.java @@ -48,18 +48,34 @@ public class HotelImpl implements Search { hotels.add(new HotelInfo("Deep Bay Hotel", "Wonderful sea views and a relaxed atmosphere", "ANU", + "06/12/08", + "200", + 100, + "USD", "http://localhost:8085/tbd" )); hotels.add(new HotelInfo("Long Bay Hotel", "Friendly staff and an ocean breeze", "ANU", + "06/12/08", + "200", + 100, + "USD", "http://localhost:8085/tbd" )); hotels.add(new HotelInfo("City Hotel", "Smart rooms and early breakfasts", "NY", + "06/12/08", + "200", + 100, + "USD", "http://localhost:8085/tbd" )); hotels.add(new HotelInfo("County Hotel", "The smell of the open country", "SOU", + "06/12/08", + "200", + 100, + "USD", "http://localhost:8085/tbd" )); } @@ -74,6 +90,10 @@ public class HotelImpl implements Search { hotel.getName(), hotel.getDescription(), hotel.getLocation(), + tripLeg.getFromDate(), + tripLeg.getToDate(), + hotel.getPricePerBed(), + hotel.getCurrency(), hotel.getLink()); items.add(item); } diff --git a/sandbox/travelsample/hotel-contribution/src/scatours/hotel/HotelInfo.java b/sandbox/travelsample/hotel-contribution/src/scatours/hotel/HotelInfo.java index 6c8471ebb4..3b0d11d16e 100644 --- a/sandbox/travelsample/hotel-contribution/src/scatours/hotel/HotelInfo.java +++ b/sandbox/travelsample/hotel-contribution/src/scatours/hotel/HotelInfo.java @@ -25,6 +25,10 @@ public class HotelInfo { private String name; private String description; private String location; + private String date; + private String beds; + private double pricePerBed; + private String currency; private String link; public HotelInfo() { @@ -33,11 +37,19 @@ public class HotelInfo { public HotelInfo(String name, String description, String location, + String date, + String beds, + double pricePerBed, + String currency, String link) { this.name = name; this.description = description; this.location = location; + this.date = date; + this.beds = beds; + this.pricePerBed = pricePerBed; + this.currency = currency; this.link = link; } @@ -66,6 +78,38 @@ public class HotelInfo { this.location = location; } + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public String getBeds() { + return beds; + } + + public void setBeds(String beds) { + this.beds = beds; + } + + public double getPricePerBed() { + return pricePerBed; + } + + public void setPricePerBed(double pricePerBed) { + this.pricePerBed = pricePerBed; + } + + public String getCurrency() { + return currency; + } + + public void setCurrency(String currency) { + this.currency = currency; + } + public String getLink() { return link; } |