RRRRHHHH_Code
Diff Revisions
578bec ...
vs
25898b ...
for ruralHouses client/src/domain/Booking.java
|
@@ -10,7 +10,6 @@ |
10 |
10 |
|
*/ |
11 |
11 |
|
private static final long serialVersionUID = 1L; |
12 |
12 |
|
private int bookingNumber; |
13 |
|
- |
private boolean isPaid; |
14 |
13 |
|
private Date bookingDate; |
15 |
14 |
|
private Client client; |
16 |
15 |
|
private Offer offer; |
|
@@ -26,12 +25,10 @@ |
26 |
25 |
|
this.client=client; |
27 |
26 |
|
//Booking date is assigned to actual date |
28 |
27 |
|
this.bookingDate= new java.util.Date(System.currentTimeMillis()); |
29 |
|
- |
this.isPaid=false; |
30 |
28 |
|
} |
31 |
29 |
|
|
32 |
30 |
|
public void imprimete(){ |
33 |
31 |
|
System.out.println(bookingNumber); |
34 |
|
- |
System.out.println(isPaid); |
35 |
32 |
|
System.out.println(bookingDate); |
36 |
33 |
|
System.out.println(client.toString()); |
37 |
34 |
|
System.out.println(offer); |
|
@@ -60,20 +57,6 @@ |
60 |
57 |
|
public Date getBookDate() { |
61 |
58 |
|
return this.bookingDate; |
62 |
59 |
|
} |
63 |
|
- |
|
64 |
|
- |
public void paid() { |
65 |
|
- |
this.isPaid = true; |
66 |
|
- |
} |
67 |
|
- |
|
68 |
|
- |
public void notPaid() { |
69 |
|
- |
this.isPaid=false; |
70 |
|
- |
} |
71 |
|
- |
|
72 |
|
- |
public boolean isPaid() { |
73 |
|
- |
return isPaid; |
74 |
|
- |
} |
75 |
|
- |
|
76 |
|
- |
|
77 |
60 |
|
|
78 |
61 |
|
public Client getClient() { |
79 |
62 |
|
return client; |