package Ġcom . sel va . example _ employee _ app . view model Ċ Ċ import Ġandroid . app . Application Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġandroidx . lifecycle . Mutable LiveData Ċ import Ġandroidx . paging . Paged List Ċ import Ġcom . sel va . example _ employee _ app . model . Attendance Ċ import Ġcom . sel va . example _ employee _ app . repository . Employee Repository Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠAtt endance ViewModel Ġ@ Inject Ġconstructor ( application : ĠApplication , Ġvar Ġrepository : ĠEmployee Repository ) Ġ: ĠBase ViewModel ( application ) Ġ{ ĊĊĊĠĠĠ Ġprivate Ġval Ġ_ navigate To Detail Activity ML D Ġ= ĠMutable LiveData < Int >() ĊĊĠĠĠ Ġoverride Ġfun Ġon Item Click ( id : ĠInt ) Ġ{ ĊĠĠĠĠĠĠĠ Ġ_ navigate To Detail Activity ML D . value Ġ= Ġid ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Attendance ( id : ĠInt ): ĠLive Data < Paged List < Attendance >> Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġrepository . get Attendance ( id ) ĊĠĠĠ Ġ} Ċ Ċ }