TMPrePurchaseFavoritesDelegate

Interface for handling favorite-related operations in the prepurchase flow.

Functions

Link copied to clipboard
abstract fun prePurchaseAddEntityAsFavorite(isFavoriteForMarketHost: TMMarketDomain, abstractEntity: DiscoveryAbstractEntity, memberInfo: MemberInfo?, cookieHeaders: Map<String, String>, completed: (Boolean) -> Unit, context: Context)

Adds an entity as a favorite for a specific market.

Link copied to clipboard
abstract fun prePurchaseIsEntityAlreadyFavorite(entity: DiscoveryAbstractEntity, isFavoriteForMarketHost: TMMarketDomain, completed: (Boolean) -> Unit, context: Context)

Checks if an entity is already marked as a favorite for a specific market.

Link copied to clipboard
abstract fun prePurchaseRemoveEntityFromFavorite(abstractEntity: DiscoveryAbstractEntity, completed: (Boolean) -> Unit, context: Context)

Removes an entity from the user's favorites.