private int bookingNumber;
private boolean isPaid;
private Date bookingDate;
- private String telephone;
+ private Client client;
private Offer offer;
private boolean isAccepted;
public Booking() {
}
- public Booking(int bN ,String telephone, Offer offer) {
+ public Booking(int bN , Offer offer,Client client) {
this.bookingNumber = bN;
- this.telephone=telephone;
this.offer = offer;
- //this.price = price;
+ this.client=client;
//Booking date is assigned to actual date
this.bookingDate= new java.util.Date(System.currentTimeMillis());
this.isPaid=false;
System.out.println(bookingNumber);
System.out.println(isPaid);
System.out.println(bookingDate);
- System.out.println(telephone);
+ System.out.println(client.toString());
System.out.println(offer);
System.out.println(this.isAccepted);
}
return this.bookingDate;
}
- public void setTelephone(String telephone) {
- this.telephone = telephone;
- }
-
- public String getTelephone() {
- return this.telephone;
- }
-
public void paid() {
this.isPaid = true;
}
public boolean isAccepted(){
return this.isAccepted;
}
+
+ public Client getClient() {
+ return client;
+ }
+
+ public void setClient(Client client) {
+ this.client = client;
+ }
}
\ No newline at end of file