Skip to content

Instantly share code, notes, and snippets.

@raulh82vlc
Last active June 13, 2020 15:53
Show Gist options
  • Save raulh82vlc/7a01d21df91d2e5576184896ebb20212 to your computer and use it in GitHub Desktop.
Save raulh82vlc/7a01d21df91d2e5576184896ebb20212 to your computer and use it in GitHub Desktop.
Tweet DB Data Source returning an Observable
// query from the Tweet DAO, or DB data source
@Query("SELECT *
FROM ${Tweet.TABLE_NAME}
WHERE tweet_id IN(:tweetIds) ORDER BY created_at DESC")
fun retrieveAllTweetsForTweetsIdsRx(tweetIds: List<String>):
Observable<List<Tweet>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment