package Ġid . d tp rst y . movie me . data . local ĊĊ Ċ class ĠF avorite Repository ( private Ġval Ġmovie Dao : ĠMovie Dao ) Ġ{ ĊĊĠĠĠ Ġfun Ġmovie ById ( movie Id : ĠInt ) Ġ= Ġmovie Dao . load Mo view ById s ( movie Id ) ĊĠĠĠ Ġfun Ġmovies ( type : ĠString ) Ġ= Ġmovie Dao . load All Movie ( type ) ĊĠĠĠ Ġsuspend Ġfun Ġinsert ( favorite Movie : ĠF avorite Movie ) Ġ= ĊĠĠĠĠĠĠĠ Ġmovie Dao . in set Movie ( favorite Movie ) ĊĊĠĠĠ Ġsuspend Ġfun Ġdelete ById ( movie Id : ĠInt ) Ġ= Ġmovie Dao . delete ( movie Id ) Ċ }