Discovery APIResponse Mapper
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
legacy IDMapper
Maps legacy IDs for attractions and venues.
event Mapper
Maps event details responses to DiscoveryEvent objects.
Functions
Link copied to clipboard
fun fromDiscoveryAttractionResponse(attractions: List<DiscoveryAttractionDetailsResponse>?, id: String, marketDomain: TMMarketDomain): DiscoveryAttraction
Maps a list of attraction details responses to a single DiscoveryAttraction object.
Link copied to clipboard
fun fromDiscoveryEventResponse(body: DiscoveryEventDetailsResponse, marketDomain: TMMarketDomain): DiscoveryEvent
Maps an event details response to a DiscoveryEvent object.
Link copied to clipboard
fun fromDiscoveryVenueResponse(venues: List<DiscoveryVenueDetailsResponse>?, id: String, marketDomain: TMMarketDomain): DiscoveryVenue
Maps a list of venue details responses to a single DiscoveryVenue object.