package Ġcom . h uss ain m uk adam . cry ptr acker . ui . list Ċ Ċ import Ġandroid . app . Application Ċ import Ġandroid . arch . lifecycle . Android ViewModel Ċ import Ġcom . h uss ain m uk adam . cry ptr acker . data . network . Currency Source Service Ċ import Ġcom . h uss ain m uk adam . cry ptr acker . repo . Currency Repository Ċ Ċ /** Ċ Ġ* ĠCreated Ġby Ġh uss ain Ġon Ġ 1 0 / 1 2 / 1 7 . Ċ Ġ*/ Ċ class ĠMainActivity ViewModel ( application : ĠApplication ): ĠAndroid ViewModel ( application ) Ġ{ Ċ // ĠĠĠ Ġprivate Ġvar Ġcurrency Data : ĠLive Data < List < Currency >> Ċ // Ċ // ĠĠĠ Ġfun Ġget Currency Data (): ĠLive Data < List < Currency >> { Ċ // ĠĠĠĠĠĠĠ Ġcurrency Data Ċ // ĠĠĠ Ġ} ĊĊĠĠĠ Ġval Ġcurrency Repository Ġby Ġlazy Ġ{ ĠCurrency Repository ( Currency Source Service . getC urrency Source Service ()) Ġ} ĊĊĠĠĠ Ġfun Ġget Currency Data () Ġ= Ġcurrency Repository . getC urrency Data () Ċ }