Git Repository Public Repository

RRRRHHHH_Code

URLs

Copy to Clipboard

Diff Revisions e2ae30 ... vs 0f75b2 ... for ruralHouses/src/domain/Booking.java

Diff revisions: vs.
  @@ -10,6 +10,7 @@
10 10 private Date bookingDate;
11 11 private String telephone;
12 12 private Offer offer;
13 + private boolean isAccepted;
13 14
14 15
15 16 public Booking() {
  @@ -24,6 +25,7 @@
24 25 //Booking date is assigned to actual date
25 26 this.bookingDate= new java.util.Date(System.currentTimeMillis());
26 27 this.isPaid=false;
28 + this.isAccepted=false;
27 29 }
28 30
29 31 public void imprimete(){
  @@ -32,6 +34,7 @@
32 34 System.out.println(bookingDate);
33 35 System.out.println(telephone);
34 36 System.out.println(offer);
37 + System.out.println(this.isAccepted);
35 38 }
36 39
37 40 public int getBookNumber() {
  @@ -78,4 +81,8 @@
78 81 return isPaid;
79 82 }
80 83
84 + public boolean isAccepted(){
85 + return this.isAccepted;
86 + }
87 +
81 88 }