Presence: add device identity fields

This commit is contained in:
Peter Steinberger
2025-12-17 21:17:51 +01:00
parent 9d29fbbf80
commit 51bdf01e2e
7 changed files with 29 additions and 4 deletions

View File

@@ -28,6 +28,9 @@ class BridgePairingClient {
val deviceFamily: String?,
val modelIdentifier: String?,
val caps: List<String>?,
val deviceFamily: String?,
val modelIdentifier: String?,
val caps: List<String>?,
)
data class PairResult(val ok: Boolean, val token: String?, val error: String? = null)

View File

@@ -43,6 +43,9 @@ class BridgeSession(
val deviceFamily: String?,
val modelIdentifier: String?,
val caps: List<String>?,
val deviceFamily: String?,
val modelIdentifier: String?,
val caps: List<String>?,
)
data class InvokeRequest(val id: String, val command: String, val paramsJson: String?)

View File

@@ -46,6 +46,8 @@ class BridgePairingClientTest {
token = "token-123",
platform = "Android",
version = "test",
deviceFamily = "Android",
modelIdentifier = "SM-X000",
),
)
assertTrue(res.ok)
@@ -91,6 +93,8 @@ class BridgePairingClientTest {
token = null,
platform = "Android",
version = "test",
deviceFamily = "Android",
modelIdentifier = "SM-X000",
),
)
assertTrue(res.ok)
@@ -98,4 +102,3 @@ class BridgePairingClientTest {
server.await()
}
}