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

TrySetSector() private method

Tries to set the new fastest sector time for the one-based specified sector number.
private TrySetSector ( int sectorNumber, int driverId, PostedTime time ) : void
sectorNumber int The one-based sector time to set.
driverId int The Id of the driver which posted the time.
time PostedTime The time.
return void
        private void TrySetSector(int sectorNumber, int driverId, PostedTime time)
        {
            if(time.Type == PostedTimeType.SessionBest)
            {
                SetSector(sectorNumber, driverId, time.Time, time.LapNumber);
            }
        }