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 Client client;
18 public Booking(int bN , Offer offer,Client client) {
20 this.bookingNumber = bN;
23 //Booking date is assigned to actual date
24 this.bookingDate= new java.util.Date(System.currentTimeMillis());
28 public void imprimete(){
29 System.out.println(bookingNumber);
30 System.out.println(isPaid);
31 System.out.println(bookingDate);
32 System.out.println(client.toString());
33 System.out.println(offer);
36 public int getBookNumber() {
37 return this.bookingNumber;
40 public void setOffer(Offer offer) {
44 public Offer getOffer() {
48 public float getPrice() {
49 return this.offer.getPrice();
52 public void setBookDate(Date bookDate) {
53 this.bookingDate = bookDate;
56 public Date getBookDate() {
57 return this.bookingDate;
64 public void notPaid() {
68 public boolean isPaid() {
74 public Client getClient() {
78 public void setClient(Client client) {