private static IList <D1001_Lap_Type> GetLapsForRun(D1010_Run_Type run, IEnumerable <D1001_Lap_Type> laps) { var lapsForRun = new List <D1001_Lap_Type>(); foreach (var lap in laps) { if (lap.Index >= run.FirstLapIndex && lap.Index <= run.LastLapIndex) { lapsForRun.Add(lap); } } return(lapsForRun); }
private static IList <D303_Trk_Point_Type> GetTrackpointsForRun(D1010_Run_Type run, IDictionary <UInt32, IList <D303_Trk_Point_Type> > tracks) { return(tracks != null && tracks.ContainsKey(run.TrackIndex) ? tracks[run.TrackIndex] : new List <D303_Trk_Point_Type>()); }
private static IList<D303_Trk_Point_Type> GetTrackpointsForRun(D1010_Run_Type run, IDictionary<UInt32, IList<D303_Trk_Point_Type>> tracks) { return tracks != null && tracks.ContainsKey(run.TrackIndex) ? tracks[run.TrackIndex] : new List<D303_Trk_Point_Type>(); }
public GarminSession(D1010_Run_Type run, IList <D1001_Lap_Type> laps, IList <D303_Trk_Point_Type> trackpoints) { Run = run; Laps = laps; Trackpoints = trackpoints; }
private static IList<D1001_Lap_Type> GetLapsForRun(D1010_Run_Type run, IEnumerable<D1001_Lap_Type> laps) { var lapsForRun = new List<D1001_Lap_Type>(); foreach (var lap in laps) { if (lap.Index >= run.FirstLapIndex && lap.Index <= run.LastLapIndex) { lapsForRun.Add(lap); } } return lapsForRun; }