FavoritesApi
class FavoritesApi(favoritesProvider: FavoritesDataProvider) : PlacesListOnMapProvider, CarFeedbackSearchOptionsProvider
Content copied to clipboard
Constructors
Functions
Link copied to clipboard
suspend fun addFavorite(favoriteRecord: FavoriteRecord): Expected<GetPlacesError, FavoriteRecord>
Content 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
Link copied to clipboard