Departure

@Serializable
data class Departure(val time: ZonedDateTime, val delay: Duration?, val line: String, val lastStop: String?, val type: LineType? = null, val lineColor: Color?)

Constructors

Link copied to clipboard
constructor(time: ZonedDateTime, delay: Duration?, line: String, lastStop: String?, type: LineType? = null, lineColor: Color?)

Properties

Link copied to clipboard
@Serializable(with = DurationSerializer::class)
val delay: Duration?

The delay of the departure. Duration.ZERO if the departure is on time, null if no real-time data is available.

Link copied to clipboard
Link copied to clipboard

Name of the line (i.e. "11", "U2", "S1").

Link copied to clipboard
@Serializable(with = ColorSerializer::class)
val lineColor: Color?
Link copied to clipboard

The scheduled time of the departure.

Link copied to clipboard
val type: LineType? = null