-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTournament.cs
29 lines (27 loc) · 978 Bytes
/
Tournament.cs
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
using ClubService.Domain.Model.Enum;
namespace ClubService.Domain.Model.Entity;
public class Tournament(
Guid id,
Guid clubId,
bool isCanceled,
string name,
string description,
int maximumParticipants,
HashSet<TournamentCourt> courts,
HashSet<TournamentDay> days,
HashSet<TournamentParticipant> participants,
int version,
TournamentStatus status)
{
public Guid Id { get; } = id;
public Guid ClubId { get; } = clubId;
public bool IsCanceled { get; } = isCanceled;
public string Name { get; } = name;
public string Description { get; } = description;
public int MaximumParticipants { get; } = maximumParticipants;
public HashSet<TournamentCourt> Courts { get; } = courts;
public HashSet<TournamentDay> Days { get; } = days;
public HashSet<TournamentParticipant> Participants { get; } = participants;
public int Version { get; } = version;
public TournamentStatus Status { get; } = status;
}