-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #647 from baaahs/rework-controllers-manager
Redesign controller management
- Loading branch information
Showing
49 changed files
with
1,392 additions
and
643 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1 +1 @@ | ||
{"runningShowPath":"BRC 2024.sparkle","runningScenePath":"BRC23.scene","version":0} | ||
{"runningShowPath":"BRC 2024.sparkle","runningScenePath":"BAAAHS.scene","version":0} |
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
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
shared/src/commonMain/kotlin/baaahs/controller/ControllerState.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 baaahs.controller | ||
|
||
import baaahs.ui.Observable | ||
import kotlinx.datetime.Instant | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
abstract class ControllerState : Observable() { | ||
abstract val title: String | ||
abstract val address: String? | ||
abstract val onlineSince: Instant? | ||
abstract val firmwareVersion: String? | ||
abstract val lastErrorMessage: String? | ||
abstract val lastErrorAt: Instant? | ||
|
||
open fun matches(controllerMatcher: ControllerMatcher): Boolean = | ||
controllerMatcher.matches(title, address) | ||
} |
Oops, something went wrong.