Esempio n. 1
0
 public static IEnumerable <VehicleLapTime> GetVehicleLapTimes(this LapTimeData lapTimes, string vehicleId)
 {
     return(GetVehicleLapTimes(lapTimes, new List <string>()
     {
         vehicleId
     }));
 }
Esempio n. 2
0
 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));
 }
Esempio n. 3
0
 public static IEnumerable <VehicleLapTime> GetVehicleLapTimes(this LapTimeData lapTimes, IList <string> vehicleIds)
 {
     return(lapTimes.VehicleLapTimes.Where(v => vehicleIds.Contains(v.VehicleId)));
 }