Changeset View
Changeset View
Standalone View
Standalone View
src/it/reyboz/bustorino/data/gtfs/GtfsRoute.kt
- This file was added.
package it.reyboz.bustorino.data.gtfs | |||||
import androidx.room.ColumnInfo | |||||
import androidx.room.Entity | |||||
import androidx.room.PrimaryKey | |||||
@Entity(tableName=GtfsRoute.DB_TABLE) | |||||
data class GtfsRoute( | |||||
@PrimaryKey @ColumnInfo(name = "route_id") | |||||
val ID: String, | |||||
@ColumnInfo(name = "agency_id") | |||||
val agencyID: String, | |||||
@ColumnInfo(name = "route_short_name") | |||||
val shortName: String, | |||||
@ColumnInfo(name = "route_long_name") | |||||
val longName: String, | |||||
@ColumnInfo(name = "route_desc") | |||||
val description: String, | |||||
@ColumnInfo(name ="route_type") | |||||
val type: String, | |||||
@ColumnInfo(name ="route_url") | |||||
val url: String, | |||||
@ColumnInfo(name ="route_color") | |||||
val color: String, | |||||
@ColumnInfo(name ="route_text_color") | |||||
val textColor: String, | |||||
@ColumnInfo(name = SORT_ORDER) | |||||
val sortOrder: Int | |||||
){ | |||||
companion object { | |||||
const val DB_TABLE: String="routes_table" | |||||
const val SORT_ORDER: String="route_sort_order" | |||||
} | |||||
} |
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