CategoryMapper

class CategoryMapper(categoryImageMapper: CategoryImageMapper)

Maps category-related data for the Ticketmaster Discovery API.

This class provides methods to convert category parameters to query maps and to extract category information from responses based on URL patterns.

Parameters

categoryImageMapper

Maps URLs to category identifiers.

Constructors

Link copied to clipboard
constructor(categoryImageMapper: CategoryImageMapper)

Functions

Link copied to clipboard

Converts category parameters into a map of query parameters.

Link copied to clipboard
fun getCategory(categoryResponse: List<CategoryResponse>?, params: CategoryParams): Category?

Extracts a category from a list of category responses based on the provided parameters.