Attraction Mapper
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
discovery Classification Mapper
Maps classification data for attractions.
discovery Image Metadata Mapper
Maps image metadata for attractions.
legacy IDMapper
Maps legacy IDs for attractions.
Constructors
Link copied to clipboard
constructor(discoveryClassificationMapper: DiscoveryClassificationMapper, discoveryImageMetadataMapper: DiscoveryImageMetadataMapper, legacyIDMapper: LegacyIdMapper)
Functions
Link copied to clipboard
fun mapFromDiscoveryAttractionDetailsDataList(marketDomain: TMMarketDomain?, discoveryAttractionDetailsDataList: List<DiscoveryAttractionDetailsResponse?>, prismicImage: String?): List<DiscoveryAttraction>
Maps a list of attraction details responses to a list of DiscoveryAttraction objects.