package Ġcom . star base . bank wallet . modules . network settings Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroidx . core . os . bundle Of Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġandroidx . lifecycle . ViewModel Provider Ċ import Ġcom . star base . bank wallet . core . App Ċ import Ġio . horizontal systems . bank wallet . entities . Account Ċ Ċ object ĠNetwork Settings Module Ġ{ ĊĊĠĠĠ Ġprivate Ġconst Ġval ĠAC COUNT Ġ= Ġ" account " ĊĊĠĠĠ Ġfun Ġargs ( account : ĠAccount ) Ġ= Ġbundle Of ( ACCOUNT Ġto Ġaccount ) ĊĊĠĠĠ Ġclass ĠFactory ( arguments : ĠBundle ) Ġ: ĠViewModel Provider . Factory Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġaccount : ĠAccount Ġ= Ġarguments . get Parcelable ( ACCOUNT ) !! ĊĊĠĠĠĠĠĠĠ Ġ@ Suppress (" UN CHECK ED _ CAST ") ĊĠĠĠĠĠĠĠ Ġoverride Ġfun Ġ< T Ġ: ĠViewModel > Ġcreate ( model Class : ĠClass < T >): ĠT Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġnetwork Settings Service Ġ= ĠNetwork Settings Service ( account , Ġcom . star base . bank wallet . core . App . account Setting Manager ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġreturn ĠNetwork Settings ViewModel ( network Settings Service ) Ġas ĠT ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ Ċ } Ċ