SmartDevice.kt

Author: myltik1702Created Nov 26, 2025Updated Nov 26, 2025

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 }

Source: ryanmcdermott/clean-code-javascript