Changeset View
Changeset View
Standalone View
Standalone View
src/it/reyboz/bustorino/data/gtfs/GtfsStopTimes.kt
- This file was added.
package it.reyboz.bustorino.data.gtfs | |||||
import androidx.room.ColumnInfo | |||||
import androidx.room.Entity | |||||
@Entity(tableName = GtfsStopTimes.DB_TABLE, | |||||
primaryKeys = [GtfsStopTimes.COL_TRIPID, GtfsStopTimes.COL_STOPID] | |||||
) | |||||
data class GtfsStopTimes( | |||||
@ColumnInfo(name= COL_TRIPID) | |||||
val tripID: String, | |||||
@ColumnInfo(name= COL_ARRIVAL_TIME) | |||||
val arrivalTime: String, | |||||
@ColumnInfo(name= COL_DEPARTURE_TIME) | |||||
val departureTime:String, | |||||
@ColumnInfo(name= COL_STOPID) | |||||
val stopID: Int, | |||||
@ColumnInfo(name= COL_STOP_SEQUENCE) | |||||
val stopSequence: Int, | |||||
){ | |||||
companion object{ | |||||
const val DB_TABLE="gtfs_stop_times" | |||||
const val COL_TRIPID="trip_id" | |||||
const val COL_ARRIVAL_TIME="arrival_time" | |||||
const val COL_DEPARTURE_TIME="departure_time" | |||||
const val COL_STOPID="stop_id" | |||||
const val COL_STOP_SEQUENCE="stop_sequence" | |||||
val COLUMNS = arrayOf( | |||||
COL_TRIPID, | |||||
COL_ARRIVAL_TIME, | |||||
COL_DEPARTURE_TIME, | |||||
COL_STOPID, | |||||
COL_STOP_SEQUENCE | |||||
) | |||||
} | |||||
} |
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