AK.F1.Timing.Model.Driver.LapHistoryEntry.LapHistoryEntry C# (CSharp) Method

LapHistoryEntry() public method

Initialises a new instance of the LapHistoryEntry class.
/// Thrown when all arguments are . /// /// Thrown when specified times are not all for the same lap. ///
public LapHistoryEntry ( PostedTime s1, PostedTime s2, PostedTime s3, PostedTime lap ) : System
s1 PostedTime The sector one time set.
s2 PostedTime The sector two time set.
s3 PostedTime The sector three time set.
lap PostedTime The overall lap time set.
return System
        public LapHistoryEntry(PostedTime s1, PostedTime s2, PostedTime s3, PostedTime lap)
        {
            CheckOneIsNotNull(s1, s2, s3, lap);
            CheckLapNumbersAreEqual(s1, s2, s3, lap);

            S1 = s1;
            S2 = s2;
            S3 = s3;
            Lap = lap;
        }