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 using category and number.
public string DisplayName { get; }
Property Value
Examples
"ICE 4523", "RE 3298", "BRB 62943"
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
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; }