package Ġcom . connect yc ube . messenger . view models Ċ Ċ import Ġandroid . app . Application Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġandroidx . lifecycle . ViewModel Provider Ċ import Ġcom . connect yc ube . messenger . data . UserRepository Ċ import Ġcom . connect yc ube . video chat . RTC Session Ċ Ċ class ĠCall ViewModel Factory ( ĊĠĠĠ Ġprivate Ġval Ġapplication Context : ĠApplication , ĊĠĠĠ Ġprivate Ġval Ġuser Repository : ĠUser Repository Ċ ) Ġ: ĠViewModel Provider . New Instance Factory () Ġ{ ĊĊĠĠĠ Ġ@ Suppress (" UN CHECK ED _ CAST ") ĊĠĠĠ Ġoverride Ġfun Ġ< T Ġ: ĠViewModel > Ġcreate ( model Class : ĠClass < T >) Ġ= ĊĠĠĠĠĠĠĠ ĠCall ViewModel ( application Context , Ġuser Repository ) Ġas ĠT Ċ }