This commit is contained in:
@@ -3,6 +3,7 @@ package com.kmalbz
|
||||
import io.ktor.client.*
|
||||
import io.ktor.client.request.*
|
||||
import java.util.*
|
||||
import com.kmalbz.database.model.ResultObject
|
||||
|
||||
/**
|
||||
* Output Service - RDB Client
|
||||
@@ -16,8 +17,8 @@ open class OutputServiceRDBClient(val endpoint: String, val client: HttpClient =
|
||||
* @return Array of decision objects
|
||||
*/
|
||||
suspend fun getallnegative(
|
||||
): List<OutputObject> {
|
||||
return client.get<List<OutputObject>>("$endpoint/output/filter/negative") {
|
||||
): List<ResultObject> {
|
||||
return client.get<List<ResultObject>>("$endpoint/output/filter/negative") {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,8 +28,8 @@ open class OutputServiceRDBClient(val endpoint: String, val client: HttpClient =
|
||||
* @return Array of decision objects
|
||||
*/
|
||||
suspend fun getallpositive(
|
||||
): List<OutputObject> {
|
||||
return client.get<List<OutputObject>>("$endpoint/output/filter/positive") {
|
||||
): List<ResultObject> {
|
||||
return client.get<List<ResultObject>>("$endpoint/output/filter/positive") {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,8 +42,8 @@ open class OutputServiceRDBClient(val endpoint: String, val client: HttpClient =
|
||||
*/
|
||||
suspend fun getallafter(
|
||||
dateAfter: Date // PATH
|
||||
): List<OutputObject> {
|
||||
return client.get<List<OutputObject>>("$endpoint/output/after/$dateAfter") {
|
||||
): List<ResultObject> {
|
||||
return client.get<List<ResultObject>>("$endpoint/output/after/$dateAfter") {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,8 +56,8 @@ open class OutputServiceRDBClient(val endpoint: String, val client: HttpClient =
|
||||
*/
|
||||
suspend fun getallbefore(
|
||||
dateBefore: Date // PATH
|
||||
): List<OutputObject> {
|
||||
return client.get<List<OutputObject>>("$endpoint/output/before/$dateBefore") {
|
||||
): List<ResultObject> {
|
||||
return client.get<List<ResultObject>>("$endpoint/output/before/$dateBefore") {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -69,8 +70,8 @@ open class OutputServiceRDBClient(val endpoint: String, val client: HttpClient =
|
||||
*/
|
||||
suspend fun getDecision(
|
||||
tagID: Int // PATH
|
||||
): OutputObject {
|
||||
return client.get<OutputObject>("$endpoint/output/$tagID") {
|
||||
): ResultObject {
|
||||
return client.get<ResultObject>("$endpoint/output/$tagID") {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user