/tripkit/TripKitAndroidUI/com.skedgo.tripkit.ui.favorites.v2.data.local/FavoriteDaoV2

FavoriteDaoV2

\ interface FavoriteDaoV2

Functions

Name Summary
deleteAndInsertFavorite open suspend fun deleteAndInsertFavorite(type: FavoriteType, entity: FavoriteV2)
deleteFavoriteByLocationAddress abstract suspend fun deleteFavoriteByLocationAddress(address: String)
deleteFavoriteByObjectId abstract suspend fun deleteFavoriteByObjectId(id: String)
deleteFavoriteType abstract suspend fun deleteFavoriteType(type: FavoriteType)
favoriteExists abstract suspend fun favoriteExists(uuid: String): Boolean
favoriteExistsForUser abstract suspend fun favoriteExistsForUser(uuid: String, userId: String): Boolean
favoriteLocationExists abstract suspend fun favoriteLocationExists(address: String): Boolean
favoriteLocationExistsForUser abstract suspend fun favoriteLocationExistsForUser(address: String, userId: String): Boolean
favoriteStopExists abstract suspend fun favoriteStopExists(code: String): Boolean
favoriteStopExistsForUser abstract suspend fun favoriteStopExistsForUser(code: String, userId: String): Boolean
getAllFavorites abstract suspend fun getAllFavorites(): List<FavoriteV2>
getAllFavoritesWithEmptyUserId abstract suspend fun getAllFavoritesWithEmptyUserId(userId: String): List<FavoriteV2>
getFavoriteById abstract suspend fun getFavoriteById(id: String): FavoriteV2?
getFavoriteByLocationAddress abstract suspend fun getFavoriteByLocationAddress(locationAddress: String): FavoriteV2?
getFavoriteByStopCode abstract suspend fun getFavoriteByStopCode(code: String): FavoriteV2?
getFavoriteOfType abstract suspend fun getFavoriteOfType(type: FavoriteType): FavoriteV2?
getFavoritesByTerm abstract suspend fun getFavoritesByTerm(query: String): List<FavoriteV2>
getFavoritesExcludingWorkAndHome abstract suspend fun getFavoritesExcludingWorkAndHome(homeType: FavoriteType = home, workType: FavoriteType = work): List<FavoriteV2>
getFavoritesSorted abstract suspend fun getFavoritesSorted(homeType: FavoriteType = home, workType: FavoriteType = work): FavoriteV2?
getUserFavorites abstract suspend fun getUserFavorites(userId: String): List<FavoriteV2>
getUserFavoritesByTerm abstract suspend fun getUserFavoritesByTerm(query: String, userId: String): List<FavoriteV2>
insertAllFavorites abstract suspend fun insertAllFavorites(favorites: List<FavoriteV2>)
insertFavorite abstract suspend fun insertFavorite(entity: FavoriteV2)