package Ġcom . film ly . app . database Ċ Ċ import Ġandroidx . room . Dao Ċ import Ġandroidx . room . Insert Ċ import Ġandroidx . room . Query Ċ Ċ @ Dao Ċ interface ĠFil m ly Dao Ġ{ ĊĠĠĠ Ġ@ Insert ĊĠĠĠ Ġsuspend Ġfun Ġinsert ( film : ĠFil m ) ĊĊĠĠĠ Ġ@ Insert ĊĠĠĠ Ġsuspend Ġfun Ġinsert ( serie : ĠSer ie ) ĊĊĠĠĠ Ġ@ Insert ĊĠĠĠ Ġsuspend Ġfun Ġinsert ( actor : ĠActor ) ĊĊĠĠĠ Ġ@ Insert ĊĠĠĠ Ġsuspend Ġfun Ġinsert ( w atched : ĠW atched ) ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġfavorite _ fil ms ") ĊĠĠĠ Ġsuspend Ġfun Ġget Favorite Fil ms (): ĠList < Film > ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġfavorite _ series ") ĊĠĠĠ Ġsuspend Ġfun Ġget Favorite Series (): ĠList < Ser ie > ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġfavorite _ actors ") ĊĠĠĠ Ġsuspend Ġfun Ġget Favorite Act ors (): ĠList < Actor > ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġw atched s ") ĊĠĠĠ Ġsuspend Ġfun Ġget W atched s (): ĠList < W atched > ĊĊĠĠĠ Ġ@ Query (" DELETE ĠFROM Ġfavorite _ fil ms ĠWHERE Ġmar vel _ id Ġ= Ġ: id ") ĊĠĠĠ Ġfun Ġdelete Film ( id : ĠInt ) ĊĊĠĠĠ Ġ@ Query (" DELETE ĠFROM Ġfavorite _ series ĠWHERE Ġmar vel _ id Ġ= Ġ: id ") ĊĠĠĠ Ġfun Ġdelete Ser ie ( id : ĠInt ) ĊĊĠĠĠ Ġ@ Query (" DELETE ĠFROM Ġfavorite _ actors ĠWHERE Ġmar vel _ id Ġ= Ġ: id ") ĊĠĠĠ Ġfun Ġdelete Actor ( id : ĠInt ) Ċ }