package Ġcom . va ib hav . next life . ui . on Board ing Ċ Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġcom . va ib hav . next life . data . repo . Auth Repo Ċ import Ġcom . va ib hav . next life . data . repo . Preferences Repo Ċ import Ġdagger . h ilt . android . lifecycle . H ilt ViewModel Ċ import Ġjavax . inject . Inject Ċ Ċ @ H ilt ViewModel Ċ class ĠOn Board ing ViewModel Ġ@ Inject Ġconstructor ( ĊĠĠĠ Ġprivate Ġval Ġpreferences Repo : ĠPreferences Repo , ĊĠĠĠ Ġprivate Ġval Ġauth Repo : ĠAuth Repo Ċ ) Ġ: ĠViewModel () Ġ{ ĊĊĊĠĠĠ Ġfun Ġset On Board ing Complete () Ġ= Ġpreferences Repo . setOn Board ing Complete () ĊĊĠĠĠ Ġfun Ġis LoggedIn () Ġ= Ġauth Repo . is LoggedIn () Ċ Ċ }