package Ġcom . example . space _ task 1 Ċ Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġandroidx . lifecycle . Mutable LiveData Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġcom . example . space _ task 1 . service . payment Repository . Repository Ċ import Ġcom . example . space _ task 1 . service . model . response . Data Response Ċ Ċ class ĠPayment List ViewModel Ġ: ĠViewModel () Ġ{ ĊĠĠĠ Ġprivate Ġval Ġp Repository : ĠRepository Ġ= ĠRepository (). getInstance () ĊĠĠĠ Ġprivate Ġval Ġp Response : ĠMutable LiveData < Data Response > Ġ= Ġp Repository . getInfo () ĊĊĠĠĠ Ġfun Ġget ApiResponse (): ĠLive Data < Data Response > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġp Response ĊĠĠĠ Ġ} Ċ } Ċ