-
Notifications
You must be signed in to change notification settings - Fork 0
/
Booking.java
75 lines (60 loc) · 1.42 KB
/
Booking.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
public class Booking {
private int ID;
private int facilityID;
private int UserID;
private String date;
private int slot;
private boolean payment;
Booking() {
ID = 0;
facilityID = 0;
UserID = 0;
date = "";
slot = 0;
payment = false;
}
Booking(int aID, int aFacilityID, int aUserID, String aDate, int aSlot, boolean aPayment) {
ID = aID;
facilityID = aFacilityID;
UserID = aUserID;
date = aDate;
slot = aSlot;
payment = aPayment;
}
public int getID() {
return ID;
}
public void setID(int ID) {
this.ID = ID;
}
public int getFacilityID() {
return facilityID;
}
public void setFacilityID(int facilityID) {
this.facilityID = facilityID;
}
public int getUserID() {
return UserID;
}
public void setUserID(int userID) {
UserID = userID;
}
public String getDate() {
return date;
}
public void setDate(String date) {
this.date = date;
}
public int getSlot() {
return slot;
}
public void setSlot(int slot) {
this.slot = slot;
}
public boolean isPayment() {
return payment;
}
public void setPayment(boolean payment) {
this.payment = payment;
}
}