package Ġfr . ipp on . android aac sample . coins ent inel . db Ċ Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġandroidx . room . Dao Ċ import Ġandroidx . room . Insert Ċ import Ġandroidx . room . On Conflict Strategy Ċ import Ġandroidx . room . Query Ċ Ċ @ Dao Ċ interface ĠCoin Dao Ġ{ ĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġfun Ġinsert All ( coins : ĠArray < Coin >) ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM ĠCO IN ĠORDER ĠBY Ġrank ĠASC ") ĊĠĠĠ Ġfun ĠgetAll (): ĠLive Data < Array < Coin >> Ċ }