/// <summary> /// ドロー表の新しいインスタンスを生成します。 /// </summary> /// <param name="tournament">大会。</param> /// <param name="tennisEvent">種目。</param> /// <param name="tournamentFormat">大会形式。</param> /// <param name="eligiblePlayersType">出場対象選手の種別。</param> /// <param name="entryDetails">エントリー詳細の一覧。</param> /// <param name="mainDrawSettings">本戦のドロー設定。</param> /// <param name="qualifyingDrawSettings">予選のドロー設定。</param> /// <param name="blocks">ブロックの一覧。</param> /// <param name="editStatus">編集状態。</param> public DrawTable( Tournament tournament, TennisEvent tennisEvent, TournamentFormat tournamentFormat, EligiblePlayersType eligiblePlayersType, List <EntryDetail> entryDetails, DrawSettings mainDrawSettings, DrawSettings qualifyingDrawSettings, IEnumerable <Block> blocks, EditStatus editStatus) { this.TournamentId = tournament.Id; this.TennisEventId = tennisEvent.TennisEventId; this.TournamentFormat = tournamentFormat; this.EligiblePlayersType = eligiblePlayersType; this.EntryDetails = new EntryDetails(entryDetails); this.MainDrawSettings = mainDrawSettings; this.QualifyingDrawSettings = qualifyingDrawSettings; this.Blocks = new Blocks(blocks); this.EditStatus = editStatus; }
/// <summary> /// 出場対象選手の種別を更新します。 /// </summary> /// <param name="eligiblePlayersType">出場対象選手の種別。</param> public void UpdateEligiblePlayersType(EligiblePlayersType eligiblePlayersType) { this.EligiblePlayersType = eligiblePlayersType; }