DiscoveryAPIResponseMapper

class DiscoveryAPIResponseMapper(legacyIDMapper: LegacyIdMapper, eventMapper: EventMapper)

Maps API responses to data models for the Ticketmaster Discovery API.

This class transforms raw API responses into DiscoveryAttraction, DiscoveryVenue, or DiscoveryEvent objects, incorporating market domain information and legacy ID mapping.

Parameters

legacyIDMapper

Maps legacy IDs for attractions and venues.

eventMapper

Maps event details responses to DiscoveryEvent objects.

Constructors

Link copied to clipboard
constructor(legacyIDMapper: LegacyIdMapper, eventMapper: EventMapper)

Functions

Link copied to clipboard

Maps a list of attraction details responses to a single DiscoveryAttraction object.

Link copied to clipboard

Maps an event details response to a DiscoveryEvent object.

Link copied to clipboard

Maps a list of venue details responses to a single DiscoveryVenue object.