AttractionMapper

class AttractionMapper(discoveryClassificationMapper: DiscoveryClassificationMapper, discoveryImageMetadataMapper: DiscoveryImageMetadataMapper, legacyIDMapper: LegacyIdMapper)

Maps attraction data from the Ticketmaster Discovery API to the DiscoveryAttraction model.

This class transforms raw API response data into a list of DiscoveryAttraction objects, incorporating market domain information, image metadata, and classification mappings.

Parameters

discoveryClassificationMapper

Maps classification data for attractions.

discoveryImageMetadataMapper

Maps image metadata for attractions.

legacyIDMapper

Maps legacy IDs for attractions.

Constructors

Link copied to clipboard
constructor(discoveryClassificationMapper: DiscoveryClassificationMapper, discoveryImageMetadataMapper: DiscoveryImageMetadataMapper, legacyIDMapper: LegacyIdMapper)

Functions

fun mapFromDiscoveryAttractionDetailsDataList(marketDomain: TMMarketDomain?, discoveryAttractionDetailsDataList: List<DiscoveryAttractionDetailsResponse?>, prismicImage: String?): List<DiscoveryAttraction>

Maps a list of attraction details responses to a list of DiscoveryAttraction objects.