Class TimetableMessage
- Namespace
- DotBahn.Timetables.Models
- Assembly
- DotBahn.Timetables.dll
A message associated with an event, a stop, or a trip. Messages can represent disruptions, delays, quality changes, or general information.
public class TimetableMessage
- Inheritance
-
TimetableMessage
- Inherited Members
Constructors
TimetableMessage()
public TimetableMessage()
Properties
AffectedTrips
Trip labels of affected trains.
public IReadOnlyList<TrainLabel> AffectedTrips { get; init; }
Property Value
Category
Message category.
public string? Category { get; init; }
Property Value
Code
Message code.
public int? Code { get; init; }
Property Value
- int?
ExternalCategory
External category for the message.
public string? ExternalCategory { get; init; }
Property Value
ExternalLink
External link associated with the message.
public string? ExternalLink { get; init; }
Property Value
ExternalText
External text (public-facing message content).
public string? ExternalText { get; init; }
Property Value
Id
Unique message identifier.
public required string Id { get; init; }
Property Value
InternalText
Internal text (not intended for public display).
public string? InternalText { get; init; }
Property Value
IsActive
Whether the message is currently active (not deleted and within validity period).
public bool IsActive { get; }
Property Value
IsDeleted
Whether the message has been deleted.
public bool IsDeleted { get; init; }
Property Value
Owner
Message owner/source.
public string? Owner { get; init; }
Property Value
Priority
Message priority level.
public MessagePriority? Priority { get; init; }
Property Value
Text
The display text, preferring external text over internal text.
public string? Text { get; }
Property Value
Timestamp
Timestamp when the message was created.
public required DateTime Timestamp { get; init; }
Property Value
Type
Type of message indicating its source and purpose.
public required MessageType Type { get; init; }
Property Value
ValidFrom
Start of the message validity period.
public DateTime? ValidFrom { get; init; }
Property Value
ValidTo
End of the message validity period.
public DateTime? ValidTo { get; init; }