FavoritesApi

class FavoritesApi(favoritesProvider: FavoritesDataProvider) : PlacesListOnMapProvider, CarFeedbackSearchOptionsProvider

Constructors

Link copied to clipboard
fun FavoritesApi(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
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>
Link copied to clipboard
open override fun searchOptions(): CarFeedbackSearchOptions