package Ġcom . sam ru dd hi . qrcode scan . database Ċ Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġandroidx . room .* Ċ import Ġcom . sam ru dd hi . qrcode scan . model . Bar Code Ċ Ċ @ Dao Ċ interface ĠHistory Dao Ġ{ ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġfun Ġadd Barcode To Db ( barcode : ĠBar Code ) ĊĊĠĠĠ Ġ@ Delete ĊĠĠĠ Ġfun Ġdelete Bar Code ( barcode : ĠBar Code ) ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* Ġfrom Ġbarcode _ table ĠORDER ĠBY Ġtime Taken ") ĊĠĠĠ Ġfun ĠgetAll Bar Codes From Db (): ĠLive Data < List < Bar Code >> Ċ Ċ }