Alert

data class Alert(val activePeriod: List<TimeRange> = emptyList(), val communicationPeriod: List<TimeRange> = emptyList(), val impactPeriod: List<TimeRange> = emptyList(), val informedEntity: List<EntitySelector> = emptyList(), val cause: Alert.Cause = Cause.UnknownCause, val effect: Alert.Effect = Effect.UnknownEffect, val url: TranslatedString? = null, val headerText: TranslatedString? = null, val descriptionText: TranslatedString? = null, val ttsHeaderText: TranslatedString? = null, val ttsDescriptionText: TranslatedString? = null, val severityLevel: Alert.SeverityLevel = SeverityLevel.UnknownSeverity, val image: TranslatedImage? = null, val imageAlternativeText: TranslatedString? = null, val causeDetail: TranslatedString? = null, val effectDetail: TranslatedString? = null)(source)

A service alert in the realtime feed.

Constructors

Link copied to clipboard
constructor(activePeriod: List<TimeRange> = emptyList(), communicationPeriod: List<TimeRange> = emptyList(), impactPeriod: List<TimeRange> = emptyList(), informedEntity: List<EntitySelector> = emptyList(), cause: Alert.Cause = Cause.UnknownCause, effect: Alert.Effect = Effect.UnknownEffect, url: TranslatedString? = null, headerText: TranslatedString? = null, descriptionText: TranslatedString? = null, ttsHeaderText: TranslatedString? = null, ttsDescriptionText: TranslatedString? = null, severityLevel: Alert.SeverityLevel = SeverityLevel.UnknownSeverity, image: TranslatedImage? = null, imageAlternativeText: TranslatedString? = null, causeDetail: TranslatedString? = null, effectDetail: TranslatedString? = null)

Types

Link copied to clipboard

Root cause for the alert.

Link copied to clipboard

Rider-visible effect of the alert.

Link copied to clipboard

Severity level for the alert.

Properties

Link copied to clipboard

Time when the alert should be shown to the user. If missing, the alert will be shown as long as it appears in the feed. If multiple ranges are given, the alert will be shown during all of them. Should not be used - for backwards-compatibility only.

Link copied to clipboard

Root cause of the service disruption.

Link copied to clipboard

Human-readable description of the cause.

Link copied to clipboard

Time when the alert should be shown to the user strictly for informative reasons. If missing, the consuming application can decide when it's appropriate to be shown. If multiple ranges are given, the alert will be shown during all of them.

Link copied to clipboard

Full description of the alert.

Link copied to clipboard

Rider-visible effect on service.

Link copied to clipboard

Human-readable description of the effect.

Link copied to clipboard

Short summary of the alert.

Link copied to clipboard

Image to display alongside the alert.

Link copied to clipboard

Accessibility alt text for image.

Link copied to clipboard

Time when the services are affected by the alert. If communicationPeriod is specified, every time interval in impactPeriod must be fully contained within at least one time interval of communicationPeriod.

Link copied to clipboard

GTFS entities affected by this alert.

Link copied to clipboard
Link copied to clipboard

Text-to-speech version of descriptionText.

Link copied to clipboard

Text-to-speech version of headerText.

Link copied to clipboard

URL with additional alert information.