package Ġlt . vil n ius . t var ka u . view model Ċ Ċ import Ġandroid . arch . lifecycle . LiveData Ċ import Ġandroid . arch . lifecycle . Mutable LiveData Ċ import Ġio . reactivex . Scheduler Ċ import Ġlt . vil n ius . t var ka u . d agger . Db Scheduler Ċ import Ġlt . vil n ius . t var ka u . entity . Report Type Ċ import Ġlt . vil n ius . t var ka u . repository . Report Type Repository Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠReport TypeList ViewModel Ġ@ Inject Ġconstructor ( ĊĠĠĠ Ġ@ Db Scheduler ĊĠĠĠ Ġprivate Ġval Ġdb Scheduler : ĠScheduler , ĊĠĠĠ Ġprivate Ġval Ġreport Type Repository : ĠReport Type Repository Ċ ) Ġ: ĠBase ViewModel () Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġ_ report Types Ġ= ĠMutable LiveData < List < Report Type >>() ĊĠĠĠĠ Ġval Ġreport Types : ĠLive Data < List < Report Type >> ĊĠĠĠĠĠĠĠ Ġget () Ġ= Ġ_ report Types ĊĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ Ġdb Scheduler . create Worker (). schedule Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ_ report Types . post Value ( report Type Repository . get Report Types ()) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ