package Ġ` in `. bit ots av . feed . data Ċ Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġandroidx . room . Dao Ċ import Ġandroidx . room . Insert Ċ import Ġandroidx . room . On Conflict Strategy Ċ import Ġandroidx . room . Query Ċ Ċ @ Dao Ċ interface ĠFeed Dao Ġ{ ĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġfeed ĠORDER ĠBY Ġtimestamp ĠDESC ") ĊĠĠĠ Ġfun ĠgetAll (): ĠLive Data < List < Feed >> ĊĊĠĠĠ Ġ@ Query (" SELECT ĠMAX ( timestamp ) ĠFROM Ġfeed ") ĊĠĠĠ Ġsuspend Ġfun Ġget Latest Timestamp (): ĠLong ? ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġsuspend Ġfun Ġinsert ( var arg Ġfeeds : ĠFeed ) Ċ }