prePurchaseAddEntityAsFavorite

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.

Parameters

isFavoriteForMarketHost

The TMMarketDomain associated with the favorite action.

abstractEntity

The DiscoveryAbstractEntity to add as a favorite.

memberInfo

The MemberInfo of the user, or null if not available.

cookieHeaders

A map of cookie headers for authentication.

completed

A callback invoked with a Boolean indicating whether the operation was successful.

context

The Context used for the operation.