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