package Ġcom . f ars heel . my pos . view . payment . tender Ċ Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġandroidx . lifecycle . Mutable LiveData Ċ import Ġcom . f ars heel . my pos . base . Base ViewModel Ċ import Ġcom . f ars heel . my pos . data . repository . Cart Repository Ċ import Ġcom . f ars heel . my pos . util . Event Ċ Ċ class ĠPayment T ender ViewModel ( cart Repository : ĠCart Repository ) Ġ: ĠBase ViewModel () Ġ{ ĊĊĠĠĠ Ġval Ġamount To Pay Ġ= Ġcart Repository . cart V at Total Pay ĊĊĠĠĠ Ġprivate Ġval Ġ_ on Select Cash Ġ= ĠMutable LiveData < Event < Boolean >>() ĊĠĠĠ Ġval ĠonSelect Cash : ĠLive Data < Event < Boolean >> Ġget () Ġ= Ġ_ on Select Cash ĊĊĠĠĠ Ġprivate Ġval Ġ_ on Select Che que Ġ= ĠMutable LiveData < Event < Boolean >>() ĊĠĠĠ Ġval ĠonSelect Che que : ĠLive Data < Event < Boolean >> Ġget () Ġ= Ġ_ on Select Che que ĊĊĊĠĠĠ Ġfun ĠonSelect Cash () Ġ{ ĊĠĠĠĠĠĠĠ Ġ_ on Select Cash . post Value ( Event ( true )) ĊĠĠĠ Ġ} Ċ Ċ } Ċ