DeviceRepository

interface DeviceRepository<T>

Interface for device operations. Supports fetching, updating and deleting devices.

Functions

Link copied to clipboard
abstract suspend fun delete(device: T): Result<T>

Delete a device of type T.

Link copied to clipboard
abstract suspend fun devices(): Result<List<T>>

Fetch all devices of type T encapsulated in a Result.

Link copied to clipboard
abstract suspend fun update(device: T): Result<T>

Update a device of type T.