public async Task <GetNextDeparturesResponse> GetNextDeparturesAsync(AccessToken accessToken, string crs, string[] filterList, int timeOffset, int timeWindow) { return(await Execute(() => client.GetNextDeparturesAsync(accessToken, crs, filterList, timeOffset, timeWindow))); }
public async Task <IEnumerable <string> > GetNextDepartureAsync(string fromStation, string toStation) { var x = await service.GetNextDeparturesAsync(accessToken, fromStation, new string[] { toStation }, 0, 100); return(x.DeparturesBoard.departures.Select(g => g.service.std)); }