package Ġcom . ray w ender lich . my f avor item ov ies . model Ċ Ċ import Ġandroidx . room .* Ċ Ċ @ Dao Ċ interface ĠMovie Dao Ġ{ ĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġsuspend Ġfun Ġinsert Movies ( movies : ĠList < Movie >) ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġsuspend Ġfun Ġinsert Movie ( movie : ĠMovie ) ĊĊĠĠĠ Ġ@ Delete ĊĠĠĠ Ġsuspend Ġfun Ġdelete Movies ( var arg Ġmovie : ĠMovie ) ĊĊĠĠĠ Ġ@ Query (" DELETE ĠFROM Ġmovies _ table ĠWHERE Ġid Ġ= Ġ: movie Id ") ĊĠĠĠ Ġsuspend Ġfun Ġdelete Movie ById ( movie Id : ĠString ) ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġmovies _ table ĠORDER ĠBY Ġtitle ĠASC ") ĊĠĠĠ Ġsuspend Ġfun ĠgetAll Movies (): ĠList < Movie > ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġmovies _ table ĠWHERE Ġid Ġ= Ġ: movie Id ") ĊĠĠĠ Ġsuspend Ġfun Ġget Movie ById ( movie Id : ĠString ?): ĠMovie Ċ }