count Devices

@Query(value = ""SELECT DISTINCT COUNT(*) FROM " + USER_DEVICES_KEY + _WHERE_ + USER_IDENTIFIER_KEY + "=:" + USER_IDENTIFIER_KEY", nativeQuery = true )
abstract fun countDevices(@Param(value = "user_id") userId: String): Long

Query used to count the total devices owned by a user

Return

the total devices as long

Parameters

userId

The identifier of the user