package Ġcom . binary br icks . co iny . data . database . dao Ċ Ċ import Ġandroid . arch . persistence . room . Dao Ċ import Ġandroid . arch . persistence . room . Insert Ċ import Ġandroid . arch . persistence . room . On Conflict Strategy Ċ import Ġandroid . arch . persistence . room . Query Ċ import Ġcom . binary br icks . co iny . data . database . entities . Exchange ĊĊ Ċ /** Ċ Ġ* ĠCreated Ġby ĠP rag ya ĠA gr aw al Ċ Ġ* Ċ Ġ* ĠAdd Ġqueries Ġto Ġread / update Ġexchange Ġdata Ġfrom Ġdatabase . Ċ Ġ*/ Ċ @ Dao Ċ interface ĠExchange Dao Ġ{ ĊĊĠĠĠ Ġ@ Query (" select Ġ* Ġfrom Ġexchange ") ĊĠĠĠ Ġfun ĠgetAll Exchange s (): ĠList < Exchange > ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġfun Ġinsert Exchange s ( list : ĠList < Exchange >) Ċ } Ċ