package Ġcom . tit ou . bl a um . data _ source . local . database . dao Ċ Ċ import Ġandroidx . room .* Ċ import Ġcom . tit ou . bl a um . data _ source . local . database . models . Album Room Model Ċ import Ġcom . tit ou . bl a um . data _ source . local . database . models . Album With Titles Room Model Ċ import Ġio . reactivex . rx java 3 . core . Observable Ċ import Ġio . reactivex . rx java 3 . core . Single Ċ import Ġorg . k oin . core . K oin Component Ċ Ċ @ Dao Ċ interface ĠAlbum Dao Ġ: ĠK oin Component Ġ{ ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġfun Ġinsert ( var arg Ġalbum Room Model : ĠAlbum Room Model ) Ġ: ĠSingle < Unit > ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġalbum ") ĊĠĠĠ Ġfun ĠgetAll (): ĠObservable < List < Album Room Model >> ĊĊĠĠĠ Ġ@ Transaction ĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġalbum ") ĊĠĠĠ Ġfun Ġget Album sWith Titles (): ĠList < Album With Titles Room Model > Ċ Ċ } Ċ