void ApplyStart(SessionStart start) { StartTime = start.Timestamp; FinishCriteria = new FinishCriteria(start.Duration, start.TotalLaps, start.LapsAfterDuration, start.SkipStartingCheckpoint, start.ForceFinishOnly); TrackOfCheckpoints = ReloadTrack(StartTime, FinishCriteria); }
ITrackOfCheckpoints ReloadTrack(DateTime startTime, IFinishCriteria finishCriteria) { var track = new TrackOfCheckpoints(startTime, finishCriteria); // foreach (var checkpoint in FlattenCheckpointLog(LogEntries).Select(x => autoMapperProvider.Mapper.Map<Checkpoint>(x))) // { // track.Append(checkpoint); // } return(track); }
public TrackOfCheckpointsCyclic(DateTime?roundStartTime = null, IFinishCriteria finishCriteria = null) { FinishCriteria = finishCriteria; RoundStartTime = roundStartTime ?? default; }