public void Update(UpdatedDeparture updatedArrival) { EstimatedDateTime = updatedArrival.EstimatedDateTime; TargetDateTime = updatedArrival.TargetDateTime; ObservedDateTime = updatedArrival.ObservedDateTime; State = updatedArrival.State; MonitoredVehicleJourneyId = updatedArrival.MonitoredVehicleJourneyId; }
public override void ReadXmlElement(XElement el) { switch (el.Name.LocalName) { case "Departure": var departure = new UpdatedDeparture(); departure.ReadXml(el); Departures.Add(departure); break; } }