Exemple #1
0
        public Departure(HtmlNode departure)
        {
            var time = departure.SelectSingleNode(TimetabledDepartureXPath).ChildNodes[0].InnerText;

            TimetabledDeparture = new DepartureTime(time);

            if (departure.SelectSingleNode(PlatformXPath) != null)
            {
                Platform = departure.SelectSingleNode(PlatformXPath).ChildNodes[2].InnerText;
            }
        }
Exemple #2
0
 public ExpectedDelay(HtmlNode departure) : base (departure)
 {
     Console.WriteLine("Oh " + departure.InnerHtml);
     var time = departure.SelectSingleNode(ExpectedDepartureXPath).ChildNodes[0].InnerText;
     ExpectedDeparture = new DepartureTime(time);
 }