package Ġcom . bat dem ir . template . data . local . datasource Ċ Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġandroidx . paging . Paging Source Ċ import Ġcom . bat dem ir . template . data . entities . db . Github User Ċ import Ġcom . bat dem ir . template . data . local . base . Base DataSource Ċ import Ġcom . bat dem ir . template . data . local . dao . Github Dao Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠGithub Local DataSource Ġ@ Inject Ġconstructor ( ĊĠĠĠ Ġprivate Ġval Ġdao : ĠGithub Dao Ċ ) Ġ: ĠBase DataSource < Github User > Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġget (): ĠLive Data < List < Github User >> Ġ= Ġdao . get () ĊĊĠĠĠ Ġoverride Ġfun Ġget ( id : ĠLong ): ĠLive Data < List < Github User >> Ġ= Ġdao . get ( id ) ĊĊĠĠĠ Ġoverride Ġfun Ġget Paging (): ĠP aging Source < Int , ĠGithub User > Ġ= Ġdao . getP aging () ĊĊĠĠĠ Ġoverride Ġsuspend Ġfun Ġdelete All () Ġ= Ġdao . delete All () ĊĊĠĠĠ Ġoverride Ġsuspend Ġfun Ġinsert ( model : ĠGithub User ): ĠLong Ġ= Ġdao . insert ( model ) ĊĊĠĠĠ Ġoverride Ġsuspend Ġfun Ġinsert ( models : ĠList < Github User >) Ġ= Ġdao . insert ( models ) ĊĊĠĠĠ Ġoverride Ġsuspend Ġfun Ġupdate ( model : ĠGithub User ) Ġ= Ġdao . update ( model ) ĊĊĠĠĠ Ġoverride Ġsuspend Ġfun Ġdelete ( model : ĠGithub User ) Ġ= Ġdao . delete ( model ) Ċ }