package Ġdev . sert an . android . vide og ames . ui . favorites Ċ Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġandroidx . lifecycle . as LiveData Ċ import Ġdagger . h ilt . android . lifecycle . H ilt ViewModel Ċ import Ġdev . sert an . android . vide og ames . data . model . Game Ċ import Ġdev . sert an . android . vide og ames . data . repository . Game Repository Ċ import Ġjavax . inject . Inject Ċ Ċ @ H ilt ViewModel Ċ internal Ġclass ĠF avorites ViewModel Ġ@ Inject Ġconstructor ( repo : ĠGame Repository ) Ġ: ĠViewModel () Ġ{ ĊĠĠĠ Ġval Ġgames : ĠLive Data < List < Game >> Ġ= Ġrepo . getF avorites (). as LiveData () Ċ } Ċ