DeviceApiClient

Functions

Link copied to clipboard
Link copied to clipboard
abstract suspend fun deleteDevice(deviceId: String): Result<UIA<Unit>>
Link copied to clipboard
abstract suspend fun deleteDevices(devices: List<String>): Result<UIA<Unit>>
Link copied to clipboard
Link copied to clipboard
abstract suspend fun getDehydratedDeviceEvents(deviceId: String, nextBatch: String? = null): Result<GetDehydratedDeviceEvents.Response>
Link copied to clipboard
abstract suspend fun getDevice(deviceId: String): Result<Device>
Link copied to clipboard
abstract suspend fun getDevices(): Result<List<Device>>
Link copied to clipboard
abstract suspend fun setDehydratedDevice(deviceId: String, deviceData: DehydratedDeviceData, deviceKeys: SignedDeviceKeys, oneTimeKeys: Keys? = null, fallbackKeys: Keys? = null, initialDeviceDisplayName: String? = null): Result<SetDehydratedDevice.Response>
Link copied to clipboard
abstract suspend fun updateDevice(deviceId: String, displayName: String): Result<Unit>