public NotifierTournament(TournamentDesc info) { ID = info.TournamentID; Style = info.Style; Format = info.Format; if (info.Players != null) foreach (string player in info.Players) Players.Add(new NotifierTournamentPlayer(player)); }
public NotifierTournament(TournamentInfo info) { ID = info.TournamentID; Style = info.Style; Format = info.Format; NextEventTime = info.NextRoundTime.ToString(); if (info.Players != null) foreach (TournamentPlayerInfo player in info.Players) Players.Add(new NotifierTournamentPlayer(player)); if (info.Games != null) foreach (TournamentGameInfo game in info.Games) Games.Add(new NotifierTournamentGame(game, info.Players)); }