package Ġset list . she a . set list . set list Ċ Ċ import Ġandroid . support . annotation . Worker Thread Ċ import Ġio . reactivex . Comp letable Ċ import Ġio . reactivex . Flow able Ċ import Ġset list . she a . domain . db . Set List Dao Ċ import Ġset list . she a . domain . model . Set List Ċ import Ġjavax . inject . Inject Ċ Ċ /** Ċ Ġ* ĠCreated Ġby Ġadams he a Ġon Ġ 1 2 / 3 0 / 1 7 . Ċ Ġ*/ Ċ class ĠSet List Repository Ġ@ Inject Ġconstructor ( private Ġvar Ġset List Dao : ĠSet List Dao ) Ġ{ ĊĊĠĠĠ Ġfun Ġset List () Ġ: ĠFlow able < List < Set List >> Ġ= Ġset List Dao . getAll Flow able () ĊĊĠĠĠ Ġ@ Worker Thread ĊĠĠĠ Ġfun Ġadd Set List ( set List : ĠSet List ) Ġ: ĠComp letable Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ ĠComp letable . from Action Ġ{ Ġ Ġset List Dao . insert Set List ( set List ) Ġ} ĊĊĠĠĠ Ġfun Ġdelete Set List ( set List : ĠSet List ): ĠComp letable Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ ĠComp letable . from Action Ġ{ Ġset List Dao . delete ( set List ) Ġ} Ċ Ċ }