FavoritesApi

class FavoritesApi(carContext: CarContext, favoritesProvider: FavoritesDataProvider) : PlacesListOnMapProvider, CarFeedbackItemProvider

Constructors

Link copied to clipboard
fun FavoritesApi(carContext: CarContext, favoritesProvider: FavoritesDataProvider)

Functions

Link copied to clipboard
suspend fun addFavorite(favoriteRecord: FavoriteRecord): Expected<GetPlacesError, FavoriteRecord>
Link copied to clipboard
open override fun cancel()
Link copied to clipboard
open override fun feedbackItems(): List<CarFeedbackItem>
Link copied to clipboard
suspend fun getFavorites(): Expected<GetPlacesError, List<FavoriteRecord>>
Link copied to clipboard
open suspend override fun getPlaces(): Expected<GetPlacesError, List<PlaceRecord>>
Link copied to clipboard
suspend fun removeFavorite(favoriteId: String): Expected<GetPlacesError, Boolean>