-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify module structure, separate pure json data from html renderab…
…les and move models into base module
- Loading branch information
Showing
220 changed files
with
3,168 additions
and
22,068 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns="http://maven.apache.org/POM/4.0.0" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<packaging>jar</packaging> | ||
|
||
<parent> | ||
<groupId>de.visualdigits</groupId> | ||
<artifactId>klanglicht-kt</artifactId> | ||
<version>${revision}</version> | ||
</parent> | ||
|
||
<artifactId>klanglicht-module-base</artifactId> | ||
<version>${revision}</version> | ||
|
||
<properties> | ||
<version.twinkly>0.0.1-SNAPSHOT</version.twinkly> | ||
</properties> | ||
|
||
<dependencies> | ||
|
||
<dependency> | ||
<groupId>de.visualdigits</groupId> | ||
<artifactId>twinkly-api</artifactId> | ||
<version>${version.twinkly}</version> | ||
</dependency> | ||
|
||
<!-- serial port --> | ||
<dependency> | ||
<groupId>io.github.java-native</groupId> | ||
<artifactId>jssc</artifactId> | ||
<version>2.9.4</version> | ||
</dependency> | ||
|
||
<!-- html --> | ||
<dependency> | ||
<groupId>org.jsoup</groupId> | ||
<artifactId>jsoup</artifactId> | ||
<version>1.16.1</version> | ||
</dependency> | ||
</dependencies> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...licht/model/lightmanager/json/Actuator.kt → ...dware/lightmanager/model/json/Actuator.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
.../de/visualdigits/kotlin/klanglicht/hardware/lightmanager/model/json/ActuatorProperties.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package de.visualdigits.kotlin.klanglicht.hardware.lightmanager.model.json | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty | ||
|
||
|
||
class ActuatorProperties( | ||
var ntype: NType? = null, | ||
var index: Int? = null, | ||
var system: Int? = null, | ||
@JsonProperty("bemerkung") val comment: String? = null, | ||
var ip: String? = null, // since 10.6.4 | ||
var mac: String? = null, // since 10.6.4 | ||
@JsonProperty("typ") var typ: String? = null, // since 10.6.4 | ||
@JsonProperty("paramon") var paramOn: String? = null, | ||
@JsonProperty("paramoff") var paramOff: String? = null, | ||
var sequences: Int? = null, | ||
@JsonProperty("btnnameon") var buttonNameOn: String? = null, | ||
@JsonProperty("btnnameoff") var buttonNameOff: String? = null, | ||
@JsonProperty("deviceid") var deviceId: String? = null, | ||
var marker: String? = null, | ||
var url: String? = null, | ||
var url2: String? = null, | ||
var sunset: Boolean? = null, | ||
@JsonProperty("httptype") var httpType: Int? = null, | ||
@JsonProperty("httptype2") var httpType2: Int? = null, | ||
@JsonProperty("ntypenew") var ntypeNew: Int? = null // since 10.7.2 | ||
) |
2 changes: 1 addition & 1 deletion
2
...nglicht/model/lightmanager/json/Device.kt → ...ardware/lightmanager/model/json/Device.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...t/model/lightmanager/json/LmAirProject.kt → ...e/lightmanager/model/json/LmAirProject.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...nglicht/model/lightmanager/json/Marker.kt → ...ardware/lightmanager/model/json/Marker.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...anglicht/model/lightmanager/json/NType.kt → ...hardware/lightmanager/model/json/NType.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...st/lightmanager/model/html/RequestType.kt → ...re/lightmanager/model/json/RequestType.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...anglicht/model/lightmanager/json/Scene.kt → ...hardware/lightmanager/model/json/Scene.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...odel/lightmanager/json/SceneProperties.kt → ...ightmanager/model/json/SceneProperties.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...licht/model/lightmanager/json/Settings.kt → ...dware/lightmanager/model/json/Settings.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../deserializer/BooleanArrayDeserializer.kt → .../deserializer/BooleanArrayDeserializer.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../html/deserializer/LMParamsInitializer.kt → .../json/deserializer/LMParamsInitializer.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...eserializer/NumericBooleanDeserializer.kt → ...eserializer/NumericBooleanDeserializer.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
.../main/kotlin/de/visualdigits/kotlin/klanglicht/hardware/lightmanager/model/lm/LMAction.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package de.visualdigits.kotlin.klanglicht.hardware.lightmanager.model.lm | ||
|
||
import com.fasterxml.jackson.annotation.JsonSubTypes | ||
import com.fasterxml.jackson.annotation.JsonSubTypes.Type | ||
import com.fasterxml.jackson.annotation.JsonTypeInfo | ||
|
||
@JsonTypeInfo( | ||
use = JsonTypeInfo.Id.NAME, | ||
include = JsonTypeInfo.As.WRAPPER_OBJECT | ||
) | ||
@JsonSubTypes( | ||
Type(name = "pause", value = LMActionPause::class), | ||
Type(name = "url", value = LMActionUrl::class), | ||
Type(name = "ir", value = LMActionIR::class), | ||
) | ||
abstract class LMAction( | ||
val comment: String? = null | ||
) |
12 changes: 12 additions & 0 deletions
12
...ain/kotlin/de/visualdigits/kotlin/klanglicht/hardware/lightmanager/model/lm/LMActionIR.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package de.visualdigits.kotlin.klanglicht.hardware.lightmanager.model.lm | ||
|
||
class LMActionIR( | ||
comment: String? = null, | ||
val param: String | ||
) : LMAction(comment) { | ||
|
||
override fun toString(): String { | ||
return "[IR] $comment: $param" | ||
} | ||
} | ||
|
11 changes: 11 additions & 0 deletions
11
.../kotlin/de/visualdigits/kotlin/klanglicht/hardware/lightmanager/model/lm/LMActionPause.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package de.visualdigits.kotlin.klanglicht.hardware.lightmanager.model.lm | ||
|
||
class LMActionPause( | ||
val duration: Long? = null | ||
) : LMAction() { | ||
|
||
override fun toString(): String { | ||
return "[Pause] $duration" | ||
} | ||
} | ||
|
Oops, something went wrong.