package Ġio . s ik ork a . android . data . balance Ċ Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġandroidx . room . Dao Ċ import Ġandroidx . room . Query Ċ import Ġio . s ik ork a . android . data . Base Dao Ċ Ċ @ Dao Ċ abstract Ġclass ĠAccount Balance Dao Ġ: ĠBase Dao < Account Balance > Ġ{ ĊĊĠ Ġ@ Query (" select Ġ* Ġfrom Ġaccount _ balance Ġwhere Ġaddress _ hex Ġ= Ġ: address Hex ") ĊĠ Ġabstract Ġfun Ġobserve Balance ( address Hex : ĠString ): ĠLive Data < Account Balance > ĊĊĠ Ġ@ Query (" select Ġ* Ġfrom Ġaccount _ balance Ġwhere Ġaddress _ hex Ġ= Ġ: address Hex ") ĊĠ Ġabstract Ġfun Ġget Balance ( address Hex : ĠString ): ĠAccount Balance ? ĊĊĠ Ġ@ Query (" delete Ġfrom Ġaccount _ balance Ġwhere Ġaddress _ hex Ġ= Ġ: hex ") ĊĠ Ġabstract Ġfun Ġdelete By Hex ( hex : ĠString ) Ċ }