add query to get conferences by guid

This commit is contained in:
Felix 2018-09-05 21:05:11 +02:00
parent 73ba84c9f1
commit 9cf4d5cee5

View file

@ -31,6 +31,9 @@ interface EventDao{
@Query("SELECT * FROM event WHERE eventId in (:ids)")
fun findEventsByIds(ids: LongArray): LiveData<List<PersistentEvent>>
@Query("SELECT * FROM event WHERE guid in (:ids)")
fun findEventsByGUIDs(ids: List<String>): LiveData<List<PersistentEvent>>
@Query("SELECT * FROM event WHERE conferenceId = :id ORDER BY title ASC")
fun findEventsByConference(id: Long):LiveData<List<PersistentEvent>>