package Ġuk . co . sentinel web . bit watcher . common . database . dao Ċ Ċ import Ġandroid . arch . persistence . room .* Ċ import Ġio . reactivex . Single Ċ import Ġuk . co . sentinel web . bit watcher . common . database . converter . BigDecimal Converter Ċ import Ġuk . co . sentinel web . bit watcher . common . database . converter . Currency Code Converter Ċ import Ġuk . co . sentinel web . bit watcher . common . database . converter . Date Converter Ċ import Ġuk . co . sentinel web . bit watcher . common . database . converter . Trade Type Converter Ċ import Ġuk . co . sentinel web . bit watcher . common . database . entities . Trade Entity Ċ Ċ @ Dao Ċ @ Type Converters ( Currency Code Converter :: class , ĠBigDecimal Converter :: class , ĠDate Converter :: class , Trade Type Converter :: class ) Ċ interface ĠTrade Dao Ġ{ ĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFrom Ġtrade ") ĊĠĠĠ Ġfun Ġsingle All Trades (): ĠSingle < List < Trade Entity >> ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġfun Ġinsert Trade ( t : ĠTrade Entity ) Ċ Ċ }