ISavedRouteRepository

Functions

Link copied to clipboard
abstract fun closeDatabase()

Closes the database connection.

Link copied to clipboard
abstract fun deleteSavedRoutesByRouteId(routeId: Int): Int
Link copied to clipboard
abstract fun doesRouteExist(itinerary: String): Boolean

Checks if a route with the given itinerary already exists in the database.

Link copied to clipboard

Retrieves all saved routes associated with a specific property.

Link copied to clipboard
abstract fun insert(savedRouteItem: SavedRouteItem): Long

Inserts a Save Route iteminto the database.

Link copied to clipboard
abstract fun updateRouteItinerary(itineraryUpdates: HashMap<Int, String>): Int

Updates the itinerary of for the given route.

Link copied to clipboard
abstract fun updateRouteName(routeId: Int, newRouteName: String): Boolean

Updates the name of a saved route.