add pagination and device id query
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-08-17 16:16:37 +02:00
parent 430b4b756e
commit f2ab81e0f4
3 changed files with 33 additions and 0 deletions

View File

@@ -7,6 +7,9 @@ import java.util.*
interface ISampleObjectService{
fun addOne(apiObject: ApiObject)
suspend fun getAllSampleObjects(): List<ApiObject>
suspend fun getCount(): Long
suspend fun getPage(page: Long): List<ApiObject>
suspend fun getSampleObjectbyDeviceID(device_id: Int): List<ApiObject>
suspend fun getSampleObjectbyTag(tag: String): ApiObject?
suspend fun getSampleObjectbyDate(date: LocalDate): List<ApiObject>
suspend fun getSampleObjectbeforeDate(date: LocalDate): List<ApiObject>