Alert

data class Alert(val alertId: String, val type: AlertType, val times: List<AlertTime>? = null, val stationIds: List<String>? = null, val regionIds: List<String>? = null, val url: Url? = null, val summary: String, val description: String? = null, val lastUpdated: EpochSeconds? = null)(source)

An alert about changes to the system.

Constructors

Link copied to clipboard
constructor(alertId: String, type: AlertType, times: List<AlertTime>? = null, stationIds: List<String>? = null, regionIds: List<String>? = null, url: Url? = null, summary: String, description: String? = null, lastUpdated: EpochSeconds? = null)

Properties

Link copied to clipboard
@SerialName(value = "alert_id")
val alertId: String

Identifier for this alert.

Link copied to clipboard

Detailed description of the alert.

Link copied to clipboard
@SerialName(value = "last_updated")
val lastUpdated: EpochSeconds?

Indicates the last time the info for the alert was updated.

Link copied to clipboard
@SerialName(value = "region_ids")
val regionIds: List<String>?

If this system has regions, and if this alert only affects certain regions, their IDs.

Link copied to clipboard
@SerialName(value = "station_ids")
val stationIds: List<String>?

If this is an alert that affects one or more stations, their IDs.

Link copied to clipboard

A short summary of this alert to be displayed to the customer.

Link copied to clipboard

Array of objects indicating when the alert is in effect.

Link copied to clipboard

Type of alert.

Link copied to clipboard
val url: Url?

URL where the customer can learn more information about this alert.