feat: Add SensorDataRepository
This commit is contained in:
parent
f564f91f69
commit
4068a878f9
|
|
@ -0,0 +1,12 @@
|
||||||
|
package com.syaroful.agrilinkvocpro.data.repository
|
||||||
|
|
||||||
|
import com.syaroful.agrilinkvocpro.data.model.SensorDataResponse
|
||||||
|
import com.syaroful.agrilinkvocpro.data.network.ApiService
|
||||||
|
import retrofit2.Response
|
||||||
|
|
||||||
|
class SensorDataRepository(private val apiService: ApiService) {
|
||||||
|
|
||||||
|
suspend fun getLatestSensorData(authHeader: String): Response<SensorDataResponse> {
|
||||||
|
return apiService.getLatestSensorData(authHeader)
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user