package Ġcom . j ens ence le st ial . gh ib library . android . data . db Ċ Ċ import Ġandroidx . room . Dao Ċ import Ġandroidx . room . Insert Ċ import Ġandroidx . room . On Conflict Strategy Ċ import Ġandroidx . room . Query Ċ import Ġcom . j ens ence le st ial . gh ib library . android . data . model . Film Ċ Ċ @ Dao Ċ interface ĠFil m Dao Ġ{ ĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġsuspend Ġfun Ġinsert Film ( film : ĠFil m ) ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġsuspend Ġfun Ġinsert Fil ms ( fil ms : ĠList < Film >) ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġfilm ") ĊĠĠĠ Ġsuspend Ġfun ĠgetAll Fil ms (): ĠList < Film > ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġfilm ĠWHERE Ġid Ġ= Ġ: film Id ") ĊĠĠĠ Ġsuspend Ġfun Ġget Film ( film Id : ĠString ): ĠFil m Ċ Ċ }