aboutsummaryrefslogtreecommitdiff
path: root/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-02-06 22:56:15 -0600
committerIván Ávalos <avalos@disroot.org>2022-02-06 22:56:15 -0600
commit7610b6506ee3612413cc0b9636c24aadb05c7119 (patch)
tree942e681d1df448c110c5f4c1cdc81b7404e673a3 /shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers
parentb86898ed1ac5d06d3e3a39cc693cac0a1acc4ef6 (diff)
downloadetbsa-trackermap-mobile-7610b6506ee3612413cc0b9636c24aadb05c7119.tar.gz
etbsa-trackermap-mobile-7610b6506ee3612413cc0b9636c24aadb05c7119.tar.bz2
etbsa-trackermap-mobile-7610b6506ee3612413cc0b9636c24aadb05c7119.zip
Make CommandsController injectable
Diffstat (limited to 'shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers')
-rw-r--r--shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/CommandsController.kt3
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()
}