public static IEnumerable <VehicleLapTime> GetVehicleLapTimes(this LapTimeData lapTimes, string vehicleId) { return(GetVehicleLapTimes(lapTimes, new List <string>() { vehicleId })); }
public static IEnumerable <VehicleLapTime> GetVehicleLapTimes(this LapTimeData lapTimes, IList <string> vehicleIds, int startLap = 1, int endLap = 999) { return(lapTimes.VehicleLapTimes.Where(v => vehicleIds.Contains(v.VehicleId) && v.LapNumber >= startLap && v.LapNumber <= endLap)); }
public static IEnumerable <VehicleLapTime> GetVehicleLapTimes(this LapTimeData lapTimes, IList <string> vehicleIds) { return(lapTimes.VehicleLapTimes.Where(v => vehicleIds.Contains(v.VehicleId))); }