AK.F1.Timing.Model.Session.FastestTimesModel.TrySetLapUsingQuallyTime C# (CSharp) Method

TrySetLapUsingQuallyTime() private method

Tries to set the new fastest lap time using the given qually time.
private TrySetLapUsingQuallyTime ( int driverId, System.TimeSpan quallyTime ) : void
driverId int The Id of the driver which posted the time.
quallyTime System.TimeSpan The qually time.
return void
        private void TrySetLapUsingQuallyTime(int driverId, TimeSpan quallyTime)
        {
            var driver = DriverLocator.GetDriver(driverId);
            var postedTime = new PostedTime(quallyTime, PostedTimeType.Normal, driver.LapsCompleted);

            TrySetLap(driverId, postedTime);
        }