private TimedTrackMessage convertTimedTrack(TimedTrack track) { var message = new TimedTrackMessage(); message.Coords.AddRange(track.ConvertAll(x => convertTimedCoord(x))); return(message); }
private TimedTrack convertTrack(TimedTrackMessage message) { return(new TimedTrack() { Coords = message.Coords.Select(x => convertCoord(x)).ToList() }); }