package Ġcom . dou glas . github auth . module . base Ċ Ċ import Ġandroid . arch . lifecycle . Lifecycle Observer Ċ import Ġandroid . arch . lifecycle . Mutable LiveData Ċ import Ġandroid . arch . lifecycle . ViewModel Ċ import Ġio . reactivex . dis pos ables . Composite Disposable Ċ Ċ abstract Ġclass ĠBase ViewModel : ĠViewModel (), ĠLifecycle Observer Ġ{ ĊĊĠĠĠ Ġval Ġsubscriptions Ġ= ĠComposite Disposable () ĊĠĠĠ Ġval Ġloading Status Ġ= ĠMutable LiveData < Boolean >() ĊĠĠĠ Ġval Ġshow ErrorMessage Ġ= ĠMutable LiveData < Int >() ĊĊĠĠĠ Ġoverride Ġfun Ġon Cle ared () Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on Cle ared () ĊĊĠĠĠĠĠĠĠ Ġsubscriptions . clear () ĊĠĠĠ Ġ} Ċ }