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;
13 private boolean isAccepted;
19 public Booking(int bN , Offer offer,Client client) {
21 this.bookingNumber = bN;
24 //Booking date is assigned to actual date
25 this.bookingDate= new java.util.Date(System.currentTimeMillis());
27 this.isAccepted=false;
30 public void imprimete(){
31 System.out.println(bookingNumber);
32 System.out.println(isPaid);
33 System.out.println(bookingDate);
34 System.out.println(client.toString());
35 System.out.println(offer);
36 System.out.println(this.isAccepted);
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;
67 public void notPaid() {
71 public boolean isPaid() {
75 public boolean isAccepted(){
76 return this.isAccepted;
79 public Client getClient() {
83 public void setClient(Client client) {