AiutaWishlistFeatureDataProvider

Interface defining the data provider for the wishlist feature.

This interface provides functionality to manage wishlist items, including observing the current wishlist state and modifying it.

Properties

Link copied to clipboard
abstract val wishlistProductIds: StateFlow<List<String>>

A StateFlow containing the list of product IDs currently in the wishlist. This flow can be observed to react to changes in the wishlist state.

Functions

Link copied to clipboard
abstract fun setProductInWishlist(productId: String, inWishlist: Boolean)

Updates the wishlist status of a product.