Skip to content

SmartDevice.kt #713

@myltik1702

Description

@myltik1702

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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions