refactor(model): remove ConnectionState helper methods and fix updateStatusNotification return type (#5074)

This commit is contained in:
James Rich 2026-04-11 18:41:34 -05:00 committed by GitHub
parent 174315b21f
commit 62264b10c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 51 additions and 35 deletions

View file

@ -28,12 +28,4 @@ sealed class ConnectionState {
/** The device is in a light sleep state, and we are waiting for it to wake up and reconnect to us. */
data object DeviceSleep : ConnectionState()
fun isConnected() = this == Connected
fun isConnecting() = this == Connecting
fun isDisconnected() = this == Disconnected
fun isDeviceSleep() = this == DeviceSleep
}