package Ġcom . nan am are . data . local . db Ċ Ċ import Ġandroidx . room . Dao Ċ import Ġandroidx . room . Insert Ċ import Ġandroidx . room . On Conflict Strategy Ċ import Ġandroidx . room . Query Ċ Ċ @ Dao Ċ interface ĠMovie Remote Key Dao Ġ{ ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġmovie _ remote _ key ĠWHERE Ġid Ġ= Ġ: id ") ĊĠĠĠ Ġsuspend Ġfun Ġget Remote Key ( id : ĠLong ): ĠMovie Remote Key Entity ? ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġmovie _ remote _ key ĠORDER ĠBY Ġlast Updated ĠDESC ĠLIMIT Ġ 1 ") ĊĠĠĠ Ġsuspend Ġfun Ġget Latest Movie Remote Key (): ĠMovie Remote Key Entity ? ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġsuspend Ġfun Ġreplace ( movie Remote Keys : ĠList < Movie Remote Key Entity >) ĊĊĠĠĠ Ġ@ Query (" DELETE ĠFROM Ġmovie _ remote _ key ") ĊĠĠĠ Ġsuspend Ġfun Ġdelete All () Ċ Ċ }