getStations

fun getStations(): LiveData<List<Station>>

Get all stations from the database. The return type of the function is LiveData in order to support data flow from the data to the ui layer.

Return

A LiveData object, which references a list of stations.