package Ġcom . example . co chain . beacon Ċ Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġandroidx . room .* Ċ Ċ @ Dao Ċ interface ĠBe acon Contact Dao Ġ{ ĊĠĠĠ Ġ@ Query (" SELECT Ġ* Ġfrom Ġbe acon contact ") ĊĠĠĠ Ġfun ĠgetAll (): ĠList < Beacon Contact > ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* Ġfrom Ġbe acon contact ĠORDER ĠBY Ġlast Seen ĠDESC ") ĊĠĠĠ Ġfun ĠgetAll Live Ordered (): ĠLive Data < List < Beacon Contact >> ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* Ġfrom Ġbe acon contact ĠWHERE Ġbe acon Id ĠIN Ġ(: beacon Ids )") ĊĠĠĠ Ġfun Ġload ById s ( beacon Ids : ĠArray < String >): ĠList < Beacon Contact > ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . ABORT ) ĊĠĠĠ Ġfun Ġinsert ( var arg Ġbe ac ons : ĠBe acon Contact ) ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġfun Ġupsert ( var arg Ġbe ac ons : ĠBe acon Contact ) ĊĊĠĠĠ Ġ@ Update ĊĠĠĠ Ġfun Ġupdate ( var arg Ġbe ac ons : ĠBe acon Contact ) ĊĊĠĠĠ Ġ@ Delete ĊĠĠĠ Ġfun Ġdelete ( beacon : ĠBe acon Contact ) ĊĊĠĠĠ Ġ@ Query (" DELETE Ġfrom Ġbe acon contact ") ĊĠĠĠ Ġfun Ġdelete All () Ċ } Ċ