RRRRHHHH_Code
Diff Revisions
c92b61 ...
vs
d30bcc ...
for ruralHouses/src/domain/Booking.java
|
@@ -15,9 +15,7 @@ |
15 |
15 |
|
private Offer offer; |
16 |
16 |
|
|
17 |
17 |
|
|
18 |
|
- |
public Booking() { |
19 |
|
- |
} |
20 |
|
- |
|
|
18 |
+ |
|
21 |
19 |
|
public Booking(int bN , Offer offer,Client client) { |
22 |
20 |
|
|
23 |
21 |
|
this.bookingNumber = bN; |
|
@@ -27,12 +25,6 @@ |
27 |
25 |
|
this.bookingDate= new java.util.Date(System.currentTimeMillis()); |
28 |
26 |
|
} |
29 |
27 |
|
|
30 |
|
- |
public void imprimete(){ |
31 |
|
- |
System.out.println(bookingNumber); |
32 |
|
- |
System.out.println(bookingDate); |
33 |
|
- |
System.out.println(client.toString()); |
34 |
|
- |
System.out.println(offer); |
35 |
|
- |
} |
36 |
28 |
|
|
37 |
29 |
|
public int getBookNumber() { |
38 |
30 |
|
return this.bookingNumber; |
|
@@ -46,10 +38,7 @@ |
46 |
38 |
|
return this.offer; |
47 |
39 |
|
} |
48 |
40 |
|
|
49 |
|
- |
public float getPrice() { |
50 |
|
- |
return this.offer.getPrice(); |
51 |
|
- |
} |
52 |
|
- |
|
|
41 |
+ |
|
53 |
42 |
|
public void setBookDate(Date bookDate) { |
54 |
43 |
|
this.bookingDate = bookDate; |
55 |
44 |
|
} |