SavedRouteRepositoryImpl

Constructors

Link copied to clipboard
constructor(savedRoutesDatabase: SavedRouteDbHelper)

Functions

Link copied to clipboard
open override fun closeDatabase()

Closes the database connection.

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

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

Link copied to clipboard
open override fun getSavedRoutesByPropertyId(propertyId: Int): List<SavedRouteItem>

Retrieves all saved routes associated with a specific property.

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

Inserts a Save Route iteminto the database.

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

Updates the itinerary of for the given route.

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

Updates the name of a saved route.