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

SetDriverPitCountMessage() public method

Initialises a new instance of the SetDriverPitCountMessage class and specifies if the Id of the driver and the pit count.
/// Thrown when is not positive. ///
public SetDriverPitCountMessage ( int driverId, int pitCount ) : System
driverId int The Id of the driver.
pitCount int The driver's new pit count.
return System
        public SetDriverPitCountMessage(int driverId, int pitCount)
            : base(driverId)
        {
            Guard.InRange(pitCount >= 0, "pitCount");

            PitCount = pitCount;
        }