DeviceDao

Data Access Object of DeviceEntity

Functions

Link copied to clipboard
abstract suspend fun delete(entity: DeviceEntity)
Link copied to clipboard
abstract fun getAll(): Flow<DeviceEntity>
Link copied to clipboard
abstract suspend fun getById(deviceId: Long): DeviceEntity?
Link copied to clipboard
abstract suspend fun getByMac(mac: String): DeviceEntity?
Link copied to clipboard
open suspend fun getByMacOrSave(mac: String, name: String): DeviceEntity
Link copied to clipboard
abstract suspend fun insert(entity: DeviceEntity): Long
Link copied to clipboard
abstract suspend fun update(entity: DeviceEntity)