summaryrefslogtreecommitdiff
path: root/src/main/java/design/model/Invite.java
blob: 479f520c6306ec62aa4b9b75b2dfbff86a7a4114 (plain) (blame)
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
package design.model;

import java.util.Date;

public class Invite {
    private final Team team;
    private final Date sendDate;

    public Invite(Team team, Date sendDate) {
        this.team = team;
        this.sendDate = sendDate;
    }

    public Team getTeam() {
        return team;
    }

    public Date getSendDate() {
        return sendDate;
    }

    public void accept(Golfer g) {
        team.addMember(g);
    }
}