countKeys

abstract suspend fun countKeys(targetAccount: UUID, deviceId: Int): HubPayload<Int>

Counts the number of remaining keys for the target's account device.

Returns a HubPayload which encapsulates the outcome. In case it is successful the value is the number of keys or the error if it is failure.