diff options
Diffstat (limited to 'shared/src')
-rw-r--r-- | shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/CommandsController.kt | 3 |
1 files changed, 2 insertions, 1 deletions
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<Command> { return commandsApi.commandsGet(deviceId = deviceId).toList() } |