package Ġcom . example . weather forecast . home . db Ċ Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġandroidx . room . Dao Ċ import Ġandroidx . room . Insert Ċ import Ġandroidx . room . On Conflict Strategy . REPLACE Ċ import Ġandroidx . room . Query Ċ import Ġcom . example . weather forecast . home . model . Weather Response Ċ Ċ /** Ċ Ġ* ĠData Ġaccess Ġobject Ġfor ĠWeather ĠDB Ċ Ġ*/ Ċ @ Dao Ċ interface ĠWeather Dao Ġ{ ĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠREPLACE ) ĊĠĠĠ Ġfun Ġinsert Current Weather ( weather : ĠWeather Response ) ĊĊĠĠĠ Ġ@ Query (" Select Ġ* Ġfrom ĠCurrent Weather ") ĊĠĠĠ Ġfun Ġget Weather (): ĠLive Data < List < Weather Response >> Ċ } Ċ