package Ġnet . sam yst udio . be aver . ui . main . home Ċ Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġnet . sam yst udio . be aver . data . Result Async State Ċ import Ġnet . sam yst udio . be aver . data . manager . Home Repository Manager Ċ import Ġnet . sam yst udio . be aver . data . model . Home Ċ import Ġnet . sam yst udio . be aver . di . scope . Fragment Scope Ċ import Ġnet . sam yst udio . be aver . ui . base . view model . Base Fragment ViewModel Ċ import Ġnet . sam yst udio . be aver . ui . base . view model . Data Fetch ViewModel Ċ import Ġnet . sam yst udio . be aver . ui . common . view model . Result Async State LiveData Ċ import Ġjavax . inject . Inject Ċ Ċ @ Fragment Scope Ċ class ĠHome Fragment ViewModel Ġ@ Inject Ġconstructor ( home Repository Manager : ĠHome Repository Manager ) Ġ: ĊĠĠĠ ĠBase Fragment ViewModel (), ĊĠĠĠ ĠData Fetch ViewModel < Home > Ġ{ ĊĠĠĠ Ġprivate Ġval Ġ_ data Fetch Observable : ĠResult Async State LiveData < Home > Ġ= ĊĠĠĠĠĠĠĠ ĠResult Async State LiveData ( home Repository Manager . home ()) ĊĠĠĠ Ġoverride Ġval Ġdata Fetch Observable : ĠLive Data < Result Async State < Home >> Ġ= Ġ_ data Fetch Observable ĊĊĠĠĠ Ġoverride Ġfun Ġhandle Create () Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . handle Create () ĊĠĠĠĠĠĠĠ Ġdis pos ables . add (_ data Fetch Observable ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġrefresh Data () Ġ{ ĊĠĠĠĠĠĠĠ Ġ_ data Fetch Observable . refresh () ĊĠĠĠ Ġ} Ċ }