diff options
author | Iván Ávalos <avalos@disroot.org> | 2022-02-06 22:56:15 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2022-02-06 22:56:15 -0600 |
commit | 7610b6506ee3612413cc0b9636c24aadb05c7119 (patch) | |
tree | 942e681d1df448c110c5f4c1cdc81b7404e673a3 | |
parent | b86898ed1ac5d06d3e3a39cc693cac0a1acc4ef6 (diff) | |
download | etbsa-trackermap-mobile-7610b6506ee3612413cc0b9636c24aadb05c7119.tar.gz etbsa-trackermap-mobile-7610b6506ee3612413cc0b9636c24aadb05c7119.tar.bz2 etbsa-trackermap-mobile-7610b6506ee3612413cc0b9636c24aadb05c7119.zip |
Make CommandsController injectable
-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() } |