feat: Add ClusteringRepository for fetching recommendations
This commit is contained in:
parent
32933d9ad3
commit
ff0341e2e0
|
|
@ -0,0 +1,11 @@
|
||||||
|
package com.syaroful.agrilinkvocpro.growth_recipe_feature.data.repository
|
||||||
|
|
||||||
|
import com.syaroful.agrilinkvocpro.growth_recipe_feature.data.model.ClusteringResponse
|
||||||
|
import com.syaroful.agrilinkvocpro.growth_recipe_feature.data.network.ClusteringService
|
||||||
|
|
||||||
|
|
||||||
|
class ClusteringRepository(private val apiService: ClusteringService) {
|
||||||
|
suspend fun getRecommendation(): List<ClusteringResponse> {
|
||||||
|
return apiService.getRecommendations()
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user