package Ġme . por ge . android . cars . core . layers . presentation . view models Ċ Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġandroidx . lifecycle . Mutable LiveData Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġme . por ge . android . cars . core . layers . presentation . view states . Base ViewState Ċ Ċ abstract Ġclass ĠBase ViewModel < ViewState Ġ: ĠBase ViewState > Ġ: ĠViewModel () Ġ{ ĊĊĠĠĠ Ġabstract Ġval Ġdefault ViewState : ĠView State ĊĊĠĠĠ Ġprivate Ġval Ġview State LiveData Ġby Ġlazy Ġ{ ĊĠĠĠĠĠĠĠ ĠMutable LiveData < ViewState >(). apply Ġ{ Ġpost Value ( default ViewState ) Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Live ViewState (): ĠLive Data < ViewState > Ġ= Ġview State LiveData ĊĊĠĠĠ Ġfun Ġset ViewState ( view State : ĠView State ) Ġ{ ĊĠĠĠĠĠĠĠ Ġview State LiveData . post Value ( view State ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġopen Ġfun Ġon Reset ViewState () Ġ{ ĊĠĠĠĠĠĠĠ Ġset ViewState ( default ViewState ) ĊĠĠĠ Ġ} Ċ }