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;
20 public Booking(int bN ,String telephone, Offer offer) {
22 this.bookingNumber = bN;
23 this.telephone=telephone;
26 //Booking date is assigned to actual date
27 this.bookingDate= new java.util.Date(System.currentTimeMillis());
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);
39 public int getBookNumber() {
40 return this.bookingNumber;
43 public void setOffer(Offer offer) {
47 public Offer getOffer() {
51 public float getPrice() {
52 return this.offer.getPrice();
55 public void setBookDate(Date bookDate) {
56 this.bookingDate = bookDate;
59 public Date getBookDate() {
60 return this.bookingDate;
63 public void setTelephone(String telephone) {
64 this.telephone = telephone;
67 public String getTelephone() {
68 return this.telephone;
75 public void notPaid() {
79 public boolean isPaid() {