summaryrefslogtreecommitdiff
path: root/src/main/java/design/model/StrokeLeague.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/design/model/StrokeLeague.java')
-rw-r--r--src/main/java/design/model/StrokeLeague.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/design/model/StrokeLeague.java b/src/main/java/design/model/StrokeLeague.java
index 6bdde0a..f09cabf 100644
--- a/src/main/java/design/model/StrokeLeague.java
+++ b/src/main/java/design/model/StrokeLeague.java
@@ -10,13 +10,13 @@ public class StrokeLeague extends League {
private final List<Golfer> participants;
@JsonCreator
- private StrokeLeague(int id, String name, Date registrationDate, Date startDate, Date endDate, Golfer owner, List<Golfer> participants) {
- super(id, name, registrationDate, startDate, endDate, owner);
+ private StrokeLeague(int id, String name, Date registrationDate, Date startDate, Date endDate, Golfer owner, List<Golfer> participants, List<Match> schedule) {
+ super(id, name, registrationDate, startDate, endDate, owner, schedule);
this.participants = participants;
}
- public StrokeLeague(int id, String name, Date registrationDate, Date startDate, Date endDate, Golfer owner) {
- super(id, name, registrationDate, startDate, endDate, owner);
+ public StrokeLeague(String name, Date registrationDate, Date startDate, Date endDate, Golfer owner) {
+ super(name, registrationDate, startDate, endDate, owner);
this.participants = new ArrayList<>();
}