6 import businessLogic.BookingManager;
8 @SuppressWarnings("serial")
9 public class Booking implements Serializable {
10 private int bookingNumber;
11 private boolean isPaid;
12 private Date bookingDate;
13 private String telephone;
19 public Booking(String telephone, Offer offer) {
21 this.bookingNumber = BookingManager.getNumber();
22 this.telephone=telephone;
25 //Booking date is assigned to actual date
26 this.bookingDate= new java.util.Date(System.currentTimeMillis());
30 public void imprimete(){
31 System.out.println(bookingNumber);
32 System.out.println(isPaid);
33 System.out.println(bookingDate);
34 System.out.println(telephone);
35 System.out.println(offer);
38 public int getBookNumber() {
39 return this.bookingNumber;
42 public void setOffer(Offer offer) {
46 public Offer getOffer() {
50 public float getPrice() {
51 return this.offer.getPrice();
54 public void setBookDate(Date bookDate) {
55 this.bookingDate = bookDate;
58 public Date getBookDate() {
59 return this.bookingDate;
62 public void setTelephone(String telephone) {
63 this.telephone = telephone;
66 public String getTelephone() {
67 return this.telephone;
74 public void notPaid() {
78 public boolean isPaid() {