package Ġcom . y ves ch ion g . data . local Ċ Ċ import Ġandroid . arch . persistence . room .* Ċ import Ġcom . y ves ch ion g . domain . entities . Person Detail Entity Ċ import Ġio . reactivex . Single Ċ Ċ @ Dao Ċ interface ĠPeople Details Dao Ġ{ ĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġpeople _ details ") ĊĠĠĠ Ġfun Ġget People Details (): ĠSingle < List < Person Detail Entity >> ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġpeople _ details ĠWHERE Ġperson _ id Ġ= Ġ: person Id ĠORDER ĠBY Ġstart _ timestamp ĠASC ") ĊĠĠĠ Ġfun Ġget Person Details ( person Id : ĠInt ): ĠSingle < List < Person Detail Entity >> ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġfun Ġinsert ( detail : ĠPerson Detail Entity ): ĠLong ĊĊĠĠĠ Ġ@ Update ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġfun Ġupdate ( detail : ĠPerson Detail Entity ) ĊĊĠĠĠ Ġ@ Delete ĊĠĠĠ Ġfun Ġdelete ( detail : ĠPerson Detail Entity ): ĠInt ĊĊĠĠĠ Ġ@ Query (" DELETE ĠFROM Ġpeople _ details ") ĊĠĠĠ Ġfun Ġdelete All () Ċ }