package com.erwan.revwatch.model

enum class ConnectionMode(val key: String, val displayName: String) {
    BLUETOOTH("bluetooth", "Bluetooth"),
    TEST("test", "Simulation");

    companion object {
        fun fromKey(key: String?): ConnectionMode {
            return entries.firstOrNull { it.key == key } ?: BLUETOOTH
        }
    }
}
