package Ġgithub . inform ram iz . aster iod radar . model . database . dao Ċ Ċ import Ġandroidx . room .* Ċ import Ġgithub . inform ram iz . aster iod radar . model . database . entities . A ster oid Entity Ċ import Ġkotlinx . coroutines . flow . Flow Ċ Ċ /** Ċ Ġ* ĠCreated Ġby ĠRam iz ĠR aja Ġon Ġ 1 8 / 0 4 / 2 0 2 0 Ċ Ġ*/ Ċ @ Dao Ċ abstract Ġclass ĠA ster oid Dao Ġ{ ĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġabstract Ġsuspend Ġfun Ġinsert ( var arg Ġaster oids : ĠA ster oid Entity ) ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġaster oid _ table ĠWHERE Ġepoch Date Ġ>= Ġ: currentTime ") ĊĠĠĠ Ġabstract Ġfun Ġget A ster oids ( currentTime : ĠLong Ġ= ĠSystem . currentTimeMillis ()): ĠFlow < List < A ster oid Entity >> ĊĊĠĠĠ Ġ@ Transaction ĊĠĠĠ Ġ@ Query (" DELETE ĠFROM Ġaster oid _ table ") ĊĠĠĠ Ġabstract Ġsuspend Ġfun Ġclear () Ċ }