Discovery Category Service
class DiscoveryCategoryService(categoryResponseUseCase: GetCategoryResponseUseCase, getCategoriesAndCitiesUseCase: GetCategoriesAndCitiesUseCase)
Service for retrieving category data in the Discovery API.
Parameters
category Response Use Case
Use case for fetching category responses.
Constructors
Link copied to clipboard
constructor(categoryResponseUseCase: GetCategoryResponseUseCase, getCategoriesAndCitiesUseCase: GetCategoriesAndCitiesUseCase)
Functions
Link copied to clipboard
suspend fun getCategoriesAndCities(parameter: CategoryParams): Resource<Map<String, List<CategoryResponse>>>
Fetches categories and cities data based on provided parameters.
Link copied to clipboard
Fetches category page data based on provided parameters.