Skip to content

Commit

Permalink
Use local config instead of lightmanagers config (wip)
Browse files Browse the repository at this point in the history
  • Loading branch information
sknull committed Apr 1, 2024
1 parent ed1cbb3 commit e3c2433
Show file tree
Hide file tree
Showing 6 changed files with 161 additions and 5,136 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package de.visualdigits.kotlin.klanglicht.hardware.lightmanager.model.lm

class LMActionLmAir(
val comment: String? = null,
val sceneIndex: Int? = null,
) : LMAction() {

override fun toString(): String {
return "[LMAir] $sceneIndex"
return "[LMAir] $comment: $sceneIndex"
}

override fun url(): String = "/v1/scenes/json/lmair?sceneIndex=$sceneIndex&"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
package de.visualdigits.kotlin.klanglicht.hardware.lightmanager.model.lm

import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.fasterxml.jackson.annotation.JsonInclude
import com.fasterxml.jackson.databind.SerializationFeature
import com.fasterxml.jackson.module.kotlin.jacksonMapperBuilder
import java.io.File
import java.util.Locale

@JsonIgnoreProperties("scenesMap")
class LMScenes(
val name: String? = null
) {

val scenes: MutableMap<String, MutableList<LMScene>> = mutableMapOf()
val scenes: LinkedHashMap<String, MutableList<LMScene>> = LinkedHashMap()

val scenesMap: MutableMap<String, LMScene> = mutableMapOf()
val scenesMap: LinkedHashMap<String, LMScene> = LinkedHashMap()

companion object {
private val mapper = jacksonMapperBuilder()
Expand Down
Loading

0 comments on commit e3c2433

Please sign in to comment.