Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- override fun mapCarModelNames(wish: List<GetWishResponse>):
- Flowable<List<GetWishResponse>> =
- database.carModelsDao().getAllCarModels.map { models ->
- wish.forEach { it ->
- val matchingCar = models.find { model ->
- it.model_id == model.id
- }
- it.model_name = matchingCar?.name
- }
- wish
- }
Advertisement
Add Comment
Please, Sign In to add comment