CategoryRepository

@Singleton
class CategoryRepository @Inject constructor(networkService: CategoryNetworkService, mapper: CategoryMapper)

This class receives list of all categories using CategoryNetworkService

Constructors

Link copied to clipboard
@Inject
fun CategoryRepository(networkService: CategoryNetworkService, mapper: CategoryMapper)

Functions

Link copied to clipboard
suspend fun retrieveAll(): List<Category>?

Calling this function retrieves list of all categories from NetworkService