Exemplo n.º 1
0
        /// <summary>
        /// エントリー詳細の新しいインスタンスを生成します。
        /// </summary>
        /// <param name="entryNumber">エントリー番号。</param>
        /// <param name="participationClassification">出場区分。</param>
        /// <param name="seedNumber">シード番号。</param>
        /// <param name="entryPlayers">選手情報一覧。</param>
        /// <param name="canParticipationDates">出場可能日一覧。</param>
        /// <param name="receiptStatus">受領状況。</param>
        /// <param name="usageFeatures">利用機能。</param>
        /// <param name="fromQualifying">予選からの進出者かどうか示す値。</param>
        /// <param name="blockNumber">ブロック番号。</param>
        public EntryDetail(
            EntryNumber entryNumber,
            ParticipationClassification participationClassification,
            SeedNumber seedNumber,
            IEnumerable <EntryPlayer> entryPlayers,
            IEnumerable <CanParticipationDate> canParticipationDates,
            ReceiptStatus receiptStatus,
            UsageFeatures usageFeatures,
            bool fromQualifying     = false,
            BlockNumber blockNumber = null)
        {
            this.EntryNumber = entryNumber;
            this.ParticipationClassification = participationClassification;
            this.SeedNumber            = seedNumber;
            this.EntryPlayers          = new EntryPlayers(entryPlayers);
            this.CanParticipationDates = new CanParticipationDates(canParticipationDates);
            this.ReceiptStatus         = receiptStatus;
            this.UsageFeatures         = usageFeatures;
            this.FromQualifying        = fromQualifying;

            if (!this.FromQualifying)
            {
                return;
            }

            this.BlockNumber = blockNumber ?? throw new ArgumentNullException("ブロック番号");
        }
Exemplo n.º 2
0
 /// <summary>
 /// 大会申込の新しいインスタンスを生成します。
 /// </summary>
 /// <param name="reservationNumber">予約番号。</param>
 /// <param name="reservationDate">予約受付日。</param>
 /// <param name="entryDetail">エントリー詳細。</param>
 /// <param name="entryFee">参加費。</param>
 /// <param name="receiptStatus">受領状況。</param>
 /// <param name="receivedDate">受領日。</param>
 /// <param name="applicant">申請者。</param>
 public TournamentEntry(
     string reservationNumber,
     DateTime reservationDate,
     EntryDetail entryDetail,
     EntryFee entryFee,
     ReceiptStatus receiptStatus,
     DateTime?receivedDate,
     Applicant applicant)
 {
     this.ReservationNumber = new ReservationNumber(reservationNumber);
     this.ReservationDate   = new ReservationDate(reservationDate);
     this.EntryDetail       = entryDetail;
     this.EntryFee          = entryFee;
     this.ReceiptStatus     = receiptStatus;
     this.ReceivedDate      = new ReceivedDate(receivedDate);
     this.Applicant         = applicant;
 }