-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEventRegistration.java
More file actions
59 lines (47 loc) · 1.44 KB
/
EventRegistration.java
File metadata and controls
59 lines (47 loc) · 1.44 KB
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
import java.util.ArrayList;
import java.util.List;
public class EventRegistration {
private Student student;
private String eventCategory;
private List<String> addOns;
private String paymentMethod;
private double totalFee;
public EventRegistration(Student student, String eventCategory, List<String> addOns,
String paymentMethod, double totalFee) {
this.student = student;
this.eventCategory = eventCategory;
this.addOns = new ArrayList<>(addOns);
this.paymentMethod = paymentMethod;
this.totalFee = totalFee;
}
public Student getStudent() {
return student;
}
public void setStudent(Student student) {
this.student = student;
}
public String getEventCategory() {
return eventCategory;
}
public void setEventCategory(String eventCategory) {
this.eventCategory = eventCategory;
}
public List<String> getAddOns() {
return new ArrayList<>(addOns);
}
public void setAddOns(List<String> addOns) {
this.addOns = new ArrayList<>(addOns);
}
public String getPaymentMethod() {
return paymentMethod;
}
public void setPaymentMethod(String paymentMethod) {
this.paymentMethod = paymentMethod;
}
public double getTotalFee() {
return totalFee;
}
public void setTotalFee(double totalFee) {
this.totalFee = totalFee;
}
}