3 import java.io.Serializable;
6 @SuppressWarnings("serial")
7 public class Booking implements Serializable {
8 private int bookingNumber;
9 private boolean isPaid;
10 private Date bookingDate;
11 private String telephone;
13 private boolean isAccepted;
19 public Booking(int bN ,String telephone, Offer offer) {
21 this.bookingNumber = bN;
22 this.telephone=telephone;
25 //Booking date is assigned to actual date
26 this.bookingDate= new java.util.Date(System.currentTimeMillis());
28 this.isAccepted=false;
31 public void imprimete(){
32 System.out.println(bookingNumber);
33 System.out.println(isPaid);
34 System.out.println(bookingDate);
35 System.out.println(telephone);
36 System.out.println(offer);
37 System.out.println(this.isAccepted);
40 public int getBookNumber() {
41 return this.bookingNumber;
44 public void setOffer(Offer offer) {
48 public Offer getOffer() {
52 public float getPrice() {
53 return this.offer.getPrice();
56 public void setBookDate(Date bookDate) {
57 this.bookingDate = bookDate;
60 public Date getBookDate() {
61 return this.bookingDate;
64 public void setTelephone(String telephone) {
65 this.telephone = telephone;
68 public String getTelephone() {
69 return this.telephone;
76 public void notPaid() {
80 public boolean isPaid() {
84 public boolean isAccepted(){
85 return this.isAccepted;