save Device

@Modifying(clearAutomatically = true )
@Query(value = "INSERT INTO " + DEVICES_KEY + " (" + DEVICE_IDENTIFIER_KEY + "," + BRAND_KEY + "," + MODEL_KEY + "," + OS_KEY + "," + OS_VERSION_KEY + ") VALUES (" + ":" + DEVICE_IDENTIFIER_KEY + "," + ":" + BRAND_KEY + "," + ":" + MODEL_KEY + "," + ":" + OS_KEY + "," + ":" + OS_VERSION_KEY + ")", nativeQuery = true )
abstract fun saveDevice(@Param(value = "device_id") deviceId: String, @Param(value = "brand") brand: String, @Param(value = "model") model: String, @Param(value = "os") os: String, @Param(value = "os_version") osVersion: String)

Method to save a new device in the system

Parameters

deviceId

The identifier of the device

brand

The brand of the device

model

The model of the device

os

The operating system of the device

osVersion

The version of the operating system of the device