package Ġcom . st yling android . currency converter . persistence Ċ Ċ import Ġandroidx . room . Dao Ċ import Ġandroidx . room . Insert Ċ import Ġandroidx . room . On Conflict Strategy Ċ import Ġandroidx . room . Query Ċ Ċ @ Dao Ċ interface ĠCurrency Dao Ġ{ ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM ĠExchange Rate Entity ") ĊĠĠĠ Ġfun Ġget Exchange Rates (): ĠList < Exchange Rate Entity > ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġfun Ġinsert Exchange Rates Entity ( exchange Rate : ĠExchange Rate Entity ): ĠLong ĊĊĠĠĠ Ġ@ Query (" DELETE ĠFROM ĠExchange Rate Entity ") ĊĠĠĠ Ġfun Ġdelete All Exchange Rates () ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* Ġfrom ĠBalance Entity ") ĊĠĠĠ Ġfun Ġget Balances (): ĠList < Balance Entity > ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġfun Ġinsert Balance Entity ( balance : ĠBalance Entity ): ĠLong ĊĊĠĠĠ Ġ@ Query (" DELETE ĠFROM ĠBalance Entity ") ĊĠĠĠ Ġfun Ġdelete All EB al ances () Ċ } Ċ