Table of Contents

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

IReadOnlyList<TrainLabel>

Category

Message category.

public string? Category { get; init; }

Property Value

string

Code

Message code.

public int? Code { get; init; }

Property Value

int?

ExternalCategory

External category for the message.

public string? ExternalCategory { get; init; }

Property Value

string

External link associated with the message.

public string? ExternalLink { get; init; }

Property Value

string

ExternalText

External text (public-facing message content).

public string? ExternalText { get; init; }

Property Value

string

Id

Unique message identifier.

public required string Id { get; init; }

Property Value

string

InternalText

Internal text (not intended for public display).

public string? InternalText { get; init; }

Property Value

string

IsActive

Whether the message is currently active (not deleted and within validity period).

public bool IsActive { get; }

Property Value

bool

IsDeleted

Whether the message has been deleted.

public bool IsDeleted { get; init; }

Property Value

bool

Owner

Message owner/source.

public string? Owner { get; init; }

Property Value

string

Priority

Message priority level.

public MessagePriority? Priority { get; init; }

Property Value

MessagePriority?

Text

The display text, preferring external text over internal text.

public string? Text { get; }

Property Value

string

Timestamp

Timestamp when the message was created.

public required DateTime Timestamp { get; init; }

Property Value

DateTime

Type

Type of message indicating its source and purpose.

public required MessageType Type { get; init; }

Property Value

MessageType

ValidFrom

Start of the message validity period.

public DateTime? ValidFrom { get; init; }

Property Value

DateTime?

ValidTo

End of the message validity period.

public DateTime? ValidTo { get; init; }

Property Value

DateTime?