public void Update(UpdatedArrival 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 "Arrival": var arrival = new UpdatedArrival(); arrival.ReadXml(el); Arrivals.Add(arrival); break; } }