Exemple #1
0
 /// <summary>
 /// Connections between the specified stations
 /// </summary>
 /// <param name='fromStation'>
 /// The station of departure.
 /// </param>
 /// <param name='destinationStation'>
 /// The station of destination.
 /// </param>
 public IList<Connection> Connections(Station fromStation, Station destinationStation)
 {
     var doc = XDocument.Parse(ConnectionXML(Language.ToString(), fromStation.Name, destinationStation.Name));
     return _parseConnections(doc);
 }
Exemple #2
0
 /// <summary>
 /// Connections between the specified stations at the given moment.
 /// The moment can either be the time of arrival or the time of departure.
 /// </summary>
 /// <param name='fromStation'>
 /// FThe station of departure.
 /// </param>
 /// <param name='destinationStation'>
 /// The station of destination.
 /// </param>
 /// <param name='TimeType'>
 /// The type of the time. Passing NMBSTimeSelection.DepartureTime will force the specified
 /// moment to be interpreted as the time of departure, specifying NMBSTimeSelection.ArrivalTime 
 /// will mark the moment specified as the time of arrival.
 /// </param>
 /// <param name='moment'>
 /// The time and date to which the data should be applicable.
 /// </param>
 public IList<Connection> Connections(Station fromStation, Station destinationStation, NMBSTimeSelection timeType, DateTime moment)
 {
     var doc = XDocument.Parse(ConnectionXML(Language.ToString(), fromStation.Name, destinationStation.Name, moment, timeType));
     return _parseConnections(doc);
 }
Exemple #3
0
 /// <summary>
 /// Gets the liveboard for the specific station
 /// </summary>
 /// <param name="station">The station to query</param>
 /// <returns>A list of departures for the station</returns>
 public IList<Departure> Liveboard(Station station)
 {
     return _Liveboard(station.Id);
 }