Class TrainLabel
- Namespace
- DotBahn.Timetables.Models
- Assembly
- DotBahn.Timetables.dll
Identifies a train with its category, number, operator, and service type information
public class TrainLabel
- Inheritance
-
TrainLabel
- Inherited Members
Constructors
TrainLabel()
public TrainLabel()
Properties
Category
Trip category (e.g. "ICE", "RE", "RB", "S")
public required string Category { get; init; }
Property Value
DisplayName
Display the name for the train, preferring customer-facing line.
public string DisplayName { get; }
Property Value
FilterFlags
Filter flags indicating service classification (e.g. "N" for regional, "F" for long-distance, "D" for international)
public string? FilterFlags { get; init; }
Property Value
Line
Customer-facing line name (e.g. "RE14" or "S1")
public string? Line { get; init; }
Property Value
Number
Trip/train number (e.g. "4523")
public required string Number { get; init; }
Property Value
Owner
A unique short-form code intended to map a trip to a specific railway undertaking (EVU)
public required string Owner { get; init; }
Property Value
Type
Trip type indicating the kind of service
public TripType? Type { get; init; }