package Ġcom . sh ur ik us . boost note android . model . repository . storage Ċ Ċ import Ġcom . sh ur ik us . boost note android . model . data . local . db . App Database Ċ import Ġcom . sh ur ik us . boost note android . model . data . local . db . model . Storage Model Ċ import Ġcom . sh ur ik us . boost note android . model . system . Schedulers Provider Ċ import Ġio . reactivex . Single Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠStorage Repository Ġ@ Inject Ġconstructor ( ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġapp Database : ĠApp Database , ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġs chedulers : ĠS chedulers Provider Ċ ) Ġ{ ĊĊĠĠĠ Ġfun Ġload Storage List (): ĠSingle < List < Storage Model >> Ġ= Ġapp Database ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. task Dao () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. get Storage List () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. subscribe On ( schedul ers . io ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. observe On ( schedul ers . ui ()) Ċ }