getUserNotifications

@Query(value = ""SELECT * FROM " + NOTIFICATIONS_KEY + " WHERE " + USER_KEY + "=:" + USER_KEY", nativeQuery = true)
abstract fun getUserNotifications(@Param(value = "user") userId: String): List<NovaNotification>

Method to execute the query to select all the notifications of a user

Return

the notifications list as List of NovaNotification

Parameters

userId

: the identifier of the user who the notifications belong