DeviceRepository

class DeviceRepository(context: Context)

Repository for DeviceEntity

Constructors

Link copied to clipboard
constructor(context: Context)

Functions

Link copied to clipboard
suspend fun delete(deviceEntity: DeviceEntity)
Link copied to clipboard
suspend fun getByMacOrSave(name: String, mac: String): DeviceEntity
Link copied to clipboard
suspend fun insert(deviceEntity: DeviceEntity): Long
Link copied to clipboard
suspend fun update(deviceEntity: DeviceEntity)