TransportSchedule

sealed interface TransportSchedule

Transport schedule abstraction independent of Directory API.

Sealed hierarchy covers two schedule types that the module can display: interval-based and precise time.

Inheritors

Types

Link copied to clipboard
data class Interval(val periodMinutes: Int) : TransportSchedule

Interval-based schedule ("every N minutes").

Link copied to clipboard
data object None : TransportSchedule

Placeholder — schedule is absent or not yet loaded.

Link copied to clipboard
data class Precise(val hours: Int, val minutes: Int) : TransportSchedule

Precise departure time.