package Ġagency . nice . near by p ong . local . dao Ċ Ċ import Ġagency . nice . near by p ong . model . Player Ċ import Ġandroidx . room . Dao Ċ import Ġandroidx . room . Insert Ċ import Ġandroidx . room . On Conflict Strategy . REPLACE Ċ import Ġandroidx . room . Query Ċ import Ġio . reactivex . Flow able Ċ import Ġio . reactivex . Single Ċ Ċ /** Ċ Ġ* ĠCreated Ġby Ġf ern ando . mo y ano Ġon Ġ 2 0 / 0 9 / 2 0 1 7 . Ċ Ġ*/ Ċ @ Dao Ċ interface ĠPlayer Dao Ġ{ ĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠREPLACE ) ĊĠĠĠ Ġfun Ġsave Player ( user : ĠPlayer ) ĊĊĠĠĠ Ġ@ Query (" select Ġ* Ġfrom Ġplayer ") ĊĠĠĠ Ġfun ĠgetAll Players (): ĠFlow able < List < Player >> ĊĊĠĠĠ Ġ@ Query (" select Ġ* Ġfrom Ġplayer Ġ" Ġ+ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" where Ġid Ġ= Ġ: userId ") ĊĠĠĠ Ġfun Ġget Player ( userId : ĠString ): ĠSingle < Player > Ċ }