Get Event List Use Case
class GetEventListUseCase(eventRepository: DiscoveryEventService, eventListMapper: EventListMapper, coroutineDispatcher: CoroutineDispatcher) : SuspendUseCase<GetDiscoveryEventSearchParams, List<DiscoveryEvent>>
Retrieves a list of events for the Discovery API.
Fetches DiscoveryEvent objects based on search parameters.
Parameters
event Repository
Service for fetching event details.
event List Mapper
Maps event responses to DiscoveryEvent list.
coroutine Dispatcher
Dispatcher for coroutine execution.
Constructors
Link copied to clipboard
constructor(eventRepository: DiscoveryEventService, eventListMapper: EventListMapper, coroutineDispatcher: CoroutineDispatcher)
Functions
Link copied to clipboard
suspend operator fun invoke(parameter: GetDiscoveryEventSearchParams): Resource<List<DiscoveryEvent>>
Executes the use case with the given parameter.