public CompetitionClassModel()
 {
     Results = new ReadOnlyCollection<CompetitionRunResult>(new List<CompetitionRunResult>());
     LastCompletedCompetitorNumber = null;
     ClassInfo = new CompetitionClassInfo();
     IntermediateTimerCount = 0;
     StartFinishMinDelayForSingleSensor = TimeSpan.FromSeconds(3);
     Alerts = CompetitionAlerts.Empty;
 }
 public CompetitionClassModel()
 {
     Results = new ReadOnlyCollection <CompetitionRunResult>(new List <CompetitionRunResult>());
     LastCompletedCompetitorNumber = null;
     ClassInfo = new CompetitionClassInfo();
     IntermediateTimerCount             = 0;
     StartFinishMinDelayForSingleSensor = TimeSpan.FromSeconds(3);
     Alerts = CompetitionAlerts.Empty;
 }
        private CompetitionClassModel(IReadOnlyCollection <CompetitionRunResult> results, CompetitionClassInfo classInfo, int?lastCompletedCompetitorNumber,
                                      int intermediateTimerCount, TimeSpan startFinishMinDelayForSingleSensor, CompetitionAlerts?alerts)
        {
            AssertUniqueCompetitors(results);

            Results   = results;
            ClassInfo = classInfo;
            LastCompletedCompetitorNumber      = lastCompletedCompetitorNumber;
            IntermediateTimerCount             = intermediateTimerCount;
            StartFinishMinDelayForSingleSensor = startFinishMinDelayForSingleSensor;
            Alerts = alerts ?? CompetitionAlerts.Empty;
        }
        private CompetitionClassModel([NotNull] [ItemNotNull] IReadOnlyCollection<CompetitionRunResult> results,
            [NotNull] CompetitionClassInfo classInfo, [CanBeNull] int? lastCompletedCompetitorNumber,
            int intermediateTimerCount, TimeSpan startFinishMinDelayForSingleSensor,
            [CanBeNull] CompetitionAlerts alerts)
        {
            AssertUniqueCompetitors(results);

            Results = results;
            ClassInfo = classInfo;
            LastCompletedCompetitorNumber = lastCompletedCompetitorNumber;
            IntermediateTimerCount = intermediateTimerCount;
            StartFinishMinDelayForSingleSensor = startFinishMinDelayForSingleSensor;
            Alerts = alerts ?? CompetitionAlerts.Empty;
        }