package Ġcom . ad it pr ay ogo . b aj p _ subs 1 . data . local . database . dao Ċ Ċ import Ġandroidx . paging . DataSource Ċ import Ġandroidx . room .* Ċ import Ġcom . ad it pr ay ogo . b aj p _ subs 1 . data . local . database . entity . Tv Show Entity Ċ Ċ /** Ċ Ġ* ĠCreated Ġby ĠAd iti ya ĠPr ay ogo . Ċ Ġ*/ Ċ @ Dao Ċ interface ĠT v Show Dao Ġ{ ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġtv Show ") ĊĠĠĠ Ġfun ĠgetAll Tv Show () Ġ: ĠDataSource . Factory < Int , ĠT v Show Entity > ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġtv Show ĠWHERE Ġid Ġ= : id ") ĊĠĠĠ Ġsuspend Ġfun Ġget Tv Show ById ( id Ġ: ĠInt ) Ġ: ĠList < Tv Show Entity > ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġsuspend Ġfun Ġinsert Tv Show To Db ( tv Show Entity : ĠT v Show Entity ) ĊĊĠĠĠ Ġ@ Delete ĊĠĠĠ Ġsuspend Ġfun Ġdelete Tv Show From Db ( tv Show Entity : ĠT v Show Entity ) Ċ Ċ }