host Belongs To Session

@Query(value = ""SELECT * FROM " + HOSTS_KEY + _WHERE_ + IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY + " AND " + SESSION_IDENTIFIER_KEY + "=:" + SESSION_IDENTIFIER_KEY", nativeQuery = true )
abstract fun hostBelongsToSession(@Param(value = "id") hostId: String, @Param(value = "session_id") sessionId: String): BrownieHost

Query used to check whether a host belongs to the specified session

Return

the host as BrownieHost if belongs, null otherwise

Parameters

hostId

The identifier of the host

sessionId

The identifier of the session