Now it is possible to finnish a tournament with scores and mails

This commit is contained in:
2020-04-20 23:44:09 +02:00
parent 5d0d891024
commit ac1d5371f2
9 changed files with 144 additions and 7 deletions

View File

@ -6,6 +6,8 @@ namespace TrackerLibrary.Models
{
public class TournamentModel
{
public event EventHandler<DateTime> OnTournamentComplete;
/// <summary>
/// The unique identifier for this tournament
/// </summary>
@ -30,5 +32,10 @@ namespace TrackerLibrary.Models
/// The matchups per round
/// </summary>
public List<List<Models.MatchupModel>> Rounds { get; set; } = new List<List<Models.MatchupModel>>();
public void CompleteTournament()
{
OnTournamentComplete?.Invoke(this,DateTime.Now);
}
}
}