From 7610b6506ee3612413cc0b9636c24aadb05c7119 Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Sun, 6 Feb 2022 22:56:15 -0600 Subject: Make CommandsController injectable --- .../kotlin/mx/trackermap/TrackerMap/controllers/CommandsController.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'shared/src/commonMain/kotlin') diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/CommandsController.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/CommandsController.kt index bacdb40..c483f67 100644 --- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/CommandsController.kt +++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/CommandsController.kt @@ -1,11 +1,12 @@ package mx.trackermap.TrackerMap.controllers +import mx.trackermap.TrackerMap.Injectable import mx.trackermap.TrackerMap.client.apis.CommandsApi import mx.trackermap.TrackerMap.client.models.Command class CommandsController( private val commandsApi: CommandsApi -) { +): Injectable { suspend fun fetchCommands(deviceId: Int): List { return commandsApi.commandsGet(deviceId = deviceId).toList() } -- cgit v1.2.3