Changeset View
Changeset View
Standalone View
Standalone View
src/it/reyboz/bustorino/data/gtfs/GtfsMode.kt
- This file was added.
package it.reyboz.bustorino.data.gtfs | |||||
enum class GtfsMode(val intType: Int) { | |||||
TRAM(0), | |||||
SUBWAY(1), | |||||
RAIL(2), | |||||
BUS(3), | |||||
FERRY(4), | |||||
CABLE_TRAM(5), | |||||
GONDOLA(6), | |||||
FUNICULAR(7), | |||||
TROLLEYBUS(11), | |||||
MONORAIL(12); | |||||
companion object { | |||||
private val VALUES = values() | |||||
fun getByValue(value: Int) = VALUES.firstOrNull { it.intType == value } | |||||
} | |||||
} | |||||
No newline at end of file |
Public contents are in Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) or GNU Free Documentation License (at your option) unless otherwise noted. · Contact / Register