Favorites Api
class FavoritesApi(carContext: CarContext, favoritesProvider: FavoritesDataProvider) : PlacesListOnMapProvider, CarFeedbackItemProvider
Content copied to clipboard
Functions
addFavorite
Link copied to clipboard
suspend fun addFavorite(favoriteRecord: FavoriteRecord): Expected<GetPlacesError, FavoriteRecord>
Content copied to clipboard
feedbackItems
Link copied to clipboard
getFavorites
Link copied to clipboard
suspend fun getFavorites(): Expected<GetPlacesError, List<FavoriteRecord>>
Content copied to clipboard
getPlaces
Link copied to clipboard
open suspend override fun getPlaces(): Expected<GetPlacesError, List<PlaceRecord>>
Content copied to clipboard
removeFavorite
Link copied to clipboard
suspend fun removeFavorite(favoriteId: String): Expected<GetPlacesError, Boolean>
Content copied to clipboard