clean-code-javascript
clean-code-javascript copied to clipboard
SmartDevice.kt
package com.example.smarthome.model
data class SmartDevice( val id: String, val name: String, val type: DeviceType, var isOnline: Boolean = false, var status: String = "offline" )
enum class DeviceType { LIGHT, SOCKET, SENSOR, SPEAKER, OTHER }