package Ġapp . crypto . data Ċ Ċ import Ġandroidx . room .* Ċ import Ġkotlinx . coroutines . flow . Flow Ċ Ċ @ Dao Ċ interface ĠCrypto Dao Ġ{ ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM ĠAsset Entity ") ĊĠĠĠ Ġfun Ġget Assets (): ĠFlow < List < Asset Entity >> ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM ĠAsset Entity Ġwhere Ġid Ġ= Ġ: id ") ĊĠĠĠ Ġsuspend Ġfun Ġget Asset ById ( id : ĠString ): ĠAsset Entity ? ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġsuspend Ġfun Ġinsert ( asset : ĠAsset Entity ): ĠLong ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġsuspend Ġfun Ġinsert ( asset : ĠList < Asset Entity >) ĊĊĠĠĠ Ġ@ Delete ĊĠĠĠ Ġsuspend Ġfun Ġdelete ( asset : ĠAsset Entity ) ĊĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM ĠPrice Entity ĠWHERE Ġquote Id Ġ= Ġ: quote Id ") ĊĠĠĠ Ġfun Ġget History ( quote Id : ĠString ): ĠFlow < List < Price Entity >> ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġsuspend Ġfun Ġinsert Price ( price : ĠList < Price Entity >) Ċ }