AK.F1.Timing.Messages.Driver.SetDriverSectorTimeMessage.SetDriverSectorTimeMessage C# (CSharp) Method

SetDriverSectorTimeMessage() public method

Initialises a new instance of the SetDriverSectorTimeMessage class and specifies if the Id of the driver, the sector number, and the sector time.
/// Thrown when or is not positive. /// /// Thrown when is . ///
public SetDriverSectorTimeMessage ( int driverId, int sectorNumber, PostedTime sectorTime ) : System
driverId int The Id of the driver.
sectorNumber int The sector number.
sectorTime PostedTime The sector time.
return System
        public SetDriverSectorTimeMessage(int driverId, int sectorNumber, PostedTime sectorTime)
            : base(driverId)
        {
            Guard.InRange(sectorNumber > 0, "sectorNumber");
            Guard.NotNull(sectorTime, "sectorTime");

            SectorNumber = sectorNumber;
            SectorTime = sectorTime;
        }