-
Notifications
You must be signed in to change notification settings - Fork 0
/
Booking.java
59 lines (50 loc) · 933 Bytes
/
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
public class Booking
{
private int bookingID;
private int facilityID;
private int userID;
private String date;
private int slotNum;
private boolean paymentStatus;
public Booking(int bID, int fID, int uID, String d, int sNum, boolean paymentStatus)
{
bookingID = bID;
facilityID = fID;
userID = uID;
date = d;
slotNum = sNum;
this.paymentStatus = paymentStatus;
}
public int getBookingID()
{
return bookingID;
}
public int getFacilityID()
{
return facilityID;
}
public int getUserID()
{
return userID;
}
public String getDate()
{
return date;
}
public int getSlotNum()
{
return slotNum;
}
public boolean getPaymentStatus()
{
return paymentStatus;
}
public void setPaymentStatus(boolean status)
{
paymentStatus = status;
}
public String toString()
{
return bookingID + "," + facilityID + "," + userID + "," + date + "," + slotNum + "," + paymentStatus;
}
}