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; } }
public ExpectedDelay(HtmlNode departure) : base (departure) { Console.WriteLine("Oh " + departure.InnerHtml); var time = departure.SelectSingleNode(ExpectedDepartureXPath).ChildNodes[0].InnerText; ExpectedDeparture = new DepartureTime(time); }