Compare commits
3 Commits
265efd1db0
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 74e44a07ba | |||
| 6b8ad1f5d4 | |||
| e01589aab8 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -5,3 +5,4 @@ gradlew*
|
||||
|
||||
# Ignore Gradle build output directory
|
||||
build
|
||||
.idea
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
plugins {
|
||||
id("org.jetbrains.kotlin.jvm") version "1.9.0"
|
||||
id("org.jetbrains.kotlin.jvm") version "2.0.0"
|
||||
application
|
||||
}
|
||||
|
||||
@@ -7,8 +7,8 @@ dependencies {
|
||||
testImplementation("org.jetbrains.kotlin:kotlin-test-junit5")
|
||||
testImplementation("org.junit.jupiter:junit-jupiter-engine:5.9.3")
|
||||
|
||||
implementation("com.github.hypfvieh:dbus-java-core:4.3.1")
|
||||
runtimeOnly("com.github.hypfvieh:dbus-java-transport-native-unixsocket:4.3.1")
|
||||
implementation("com.github.hypfvieh:dbus-java-core:5.0.0")
|
||||
runtimeOnly("com.github.hypfvieh:dbus-java-transport-native-unixsocket:5.0.0")
|
||||
|
||||
implementation("io.obs-websocket.community:client:2.0.0")
|
||||
|
||||
|
||||
@@ -9,9 +9,9 @@ import io.obswebsocket.community.client.model.SceneItem.Transform.TransformBuild
|
||||
import org.slf4j.LoggerFactory
|
||||
|
||||
/**
|
||||
* Use an [obs] to run [Op]s.
|
||||
* Use an [obs] to run an operation.
|
||||
*
|
||||
* Call [run] to run an OBS operation.
|
||||
* Call [invoke] to run an OBS operation.
|
||||
*/
|
||||
class OpRunner(private val obs:Obs): (String)->Unit {
|
||||
|
||||
@@ -21,7 +21,9 @@ class OpRunner(private val obs:Obs): (String)->Unit {
|
||||
private val controller = obs.controller
|
||||
|
||||
/**
|
||||
* Run the specified [Op].
|
||||
* Run the specified [op].
|
||||
*
|
||||
* @param op Operation to run.
|
||||
*/
|
||||
override fun invoke(op:String) {
|
||||
obs.submit { controller ->
|
||||
|
||||
Reference in New Issue
Block a user