package Ġb ry 1 3 3 7 . github . io . new sth ings . model . dao Ċ Ċ import Ġandroidx . room . Dao Ċ import Ġandroidx . room . Insert Ċ import Ġandroidx . room . On Conflict Strategy Ċ import Ġandroidx . room . Query Ċ import Ġb ry 1 3 3 7 . github . io . new sth ings . model . Article Ċ import Ġio . reactivex . Comp letable Ċ Ċ /** Ċ Ġ* ĠCreated Ġby Ġed ward br yan . ab erg as Ġon Ġ 0 8 / 2 4 / 2 0 1 9 . Ċ Ġ* Ċ Ġ* Ġ@ author Ġed ward br yan . ab erg as @ gmail . com Ċ Ġ*/ Ċ @ Dao Ċ interface ĠArticle Dao Ġ{ ĊĊĠ Ġ@ get : Query (" Select Ġ* Ġfrom Ġarticle ") ĊĠ Ġval Ġall : ĠList < Article > ĊĊĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠ Ġfun Ġinsert Article List ( article List : ĠList < Article >) ĊĊĠ Ġ@ Query (" Update Ġarticle Ġset Ġis Saved Ġ= Ġ: is Saved Ġwhere Ġid Ġ= Ġ: id ") ĊĠ Ġfun Ġsave Article ( is Saved : ĠBoolean , Ġid : ĠLong ) ĊĊĠ Ġ@ Query (" Update Ġarticle Ġset Ġis Arch ived Ġ= Ġ: is Arch ived Ġwhere Ġid Ġ= Ġ: id ") ĊĠ Ġfun Ġarchive Article ( is Arch ived : ĠBoolean , Ġid : ĠLong ) Ċ Ċ }