package Ġcom . ad rena . commerce . paging 3 . data . db . flow Ċ Ċ import Ġandroidx . room . Dao Ċ import Ġandroidx . room . Insert Ċ import Ġandroidx . room . On Conflict Strategy Ċ import Ġandroidx . room . Query Ċ import Ġcom . ad rena . commerce . paging 3 . data . model . Movies Ċ Ċ @ Dao Ċ interface ĠMovie Remote Keys Flow Dao Ġ{ ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġsuspend Ġfun Ġinsert All ( remote Key : ĠList < Movies . Movie Remote Keys >) ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġmovie _ remote _ keys ĠWHERE Ġmovie Id Ġ= Ġ: movie Id ") ĊĠĠĠ Ġsuspend Ġfun Ġremote Keys By Movie Id ( movie Id : ĠLong ): ĠMov ies . Movie Remote Keys ? ĊĊĠĠĠ Ġ@ Query (" DELETE ĠFROM Ġmovie _ remote _ keys ") ĊĠĠĠ Ġsuspend Ġfun Ġclear Remote Keys () Ċ Ċ }