summaryrefslogtreecommitdiffstats
path: root/sandbox/travelsample/hotel-contribution/src/scatours
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2008-08-03 13:36:24 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2008-08-03 13:36:24 +0000
commitdecdb7869ac71c291b835db1b291172b73e3c280 (patch)
tree0eca72e470f26cb889fddf122a5bd9cdb7ea8352 /sandbox/travelsample/hotel-contribution/src/scatours
parent2039d195339d7790cb584e19058deeaf7db95829 (diff)
Updates to add in cars and flights
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@682170 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/travelsample/hotel-contribution/src/scatours')
-rw-r--r--sandbox/travelsample/hotel-contribution/src/scatours/hotel/HotelImpl.java20
-rw-r--r--sandbox/travelsample/hotel-contribution/src/scatours/hotel/HotelInfo.java44
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;
}