Class TrainEvent
- Namespace
- DotBahn.Timetables.Models
- Assembly
- DotBahn.Timetables.dll
Represents an arrival or departure event at a station.
public class TrainEvent
- Inheritance
-
TrainEvent
- Inherited Members
Constructors
TrainEvent()
public TrainEvent()
Properties
DistantEndpoint
Planned distant endpoint. For international trains, this indicates the final destination beyond the stations listed in the path.
public required ChangedRef<string> DistantEndpoint { get; init; }
Property Value
- ChangedRef<string>
Messages
Messages associated with this event.
public IEnumerable<TimetableMessage> Messages { get; init; }
Property Value
Path
Planned path as a sequence of station names. For arrival, the path indicates stations before the current station (the first element is trip's start). For departure, the path indicates stations after the current station (the last element is the trip's destination). The current station is never included in the path.
public ChangedRef<IEnumerable<string>> Path { get; init; }
Property Value
- ChangedRef<IEnumerable<string>>
Platform
The platform this event occurs on.
public required ChangedRef<string> Platform { get; init; }
Property Value
- ChangedRef<string>
Status
The event status.
public required ChangedValue<EventStatus> Status { get; init; }
Property Value
- ChangedValue<EventStatus>
Time
The time of this event
public required ChangedValue<DateTime> Time { get; init; }
Property Value
- ChangedValue<DateTime>
Wings
Wing train IDs. A list of trip IDs for coupled trains (train portions).
public IEnumerable<string> Wings { get; init; }