package Ġcom . kor ol . my weather . ui . city čĊč Ċ import Ġandroid . content . Context č Ċ import Ġandroidx . lifecycle . ViewModel č Ċ import Ġandroidx . lifecycle . ViewModel Provider č Ċ import Ġcom . kor ol . my weather . db . View City Data Base Manager čĊč Ċ class ĠCity ViewModel Factory ( val Ġcity : ĠCity ): ĠViewModel Provider . Factory Ġ{ čĊčĊčĊĠĠĠ Ġoverride Ġfun Ġ< T Ġ: ĠViewModel > Ġcreate ( model Class : ĠClass < T >): ĠT Ġ{ čĊĠĠĠĠĠĠ Ġreturn ĠCity ViewModel ( city = city ) Ġas ĠT čĊĠĠĠ Ġ} č Ċ }