package Ġinfo . db prefs . lib . room Ċ Ċ import Ġandroidx . room .* Ċ import Ġinfo . db prefs . lib . room . entity . Preference Room Ċ import Ġio . reactivex . Flow able Ċ Ċ @ Dao Ċ interface ĠPreference Room Dao Ġ{ ĊĊĠĠĠ Ġ@ get : Query (" SELECT Ġ* ĠFROM Ġshared preference ") ĊĠĠĠ Ġval Ġall : ĠList < Preference Room > ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġshared preference ĠWHERE Ġkey Of Value Ġ= Ġ: key ") ĊĠĠĠ Ġfun ĠgetValue Flow able ( key : ĠString ): ĠFlow able < Preference Room > ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġshared preference ĠWHERE Ġkey Of Value Ġ= Ġ: key ") ĊĠĠĠ Ġfun ĠgetValue ( key : ĠString ): ĠPreference Room ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġfun Ġinsert All ( var arg ĠarrayOf Preference Rooms : ĠPreference Room ): ĠList < Long > ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġfun Ġinsert ( preference Room : ĠPreference Room ): ĠLong ĊĊĠĠĠ Ġ@ Update ĊĠĠĠ Ġfun Ġupdate All ( var arg ĠarrayOf Preference Rooms : ĠPreference Room ) ĊĊĠĠĠ Ġ@ Delete ĊĠĠĠ Ġfun Ġdelete ( preference Room : ĠPreference Room ) ĊĊĠĠĠ Ġ@ Query (" SELECT ĠCOUNT ( key Of Value ) ĠFROM Ġshared preference ĠWHERE Ġkey Of Value Ġ= Ġ: key ") ĊĠĠĠ Ġfun Ġcount Key ( key : ĠString ): ĠInt ĊĊĠĠĠ Ġ@ Query (" DELETE ĠFROM Ġshared preference ĠWHERE Ġkey Of Value Ġ= Ġ: key ") ĊĠĠĠ Ġfun Ġdelete ByKey ( key : ĠString ) ĊĊĠĠĠ Ġ@ Transaction ĊĠĠĠ Ġ@ Query (" DELETE ĠFROM Ġshared preference ") ĊĠĠĠ Ġfun Ġdelete All () Ċ Ċ } Ċ