package Ġcom . example . restaurant app . repository Ċ Ċ import Ġcom . example . restaurant app . db . User Dao Ċ import Ġcom . example . restaurant app . model . User Ċ Ċ class ĠUser Repository ( private Ġval Ġuser Dao : ĠUser Dao ) Ġ{ ĊĠĠĠ Ġval Ġusers Ġ= Ġuser Dao . get Users () ĊĊĠĠĠ Ġsuspend Ġfun Ġadd User ( user : ĠUser ) Ġ= Ġuser Dao . add User ( user ) ĊĠĠĠ Ġsuspend Ġfun Ġdelete User ByID ( uid : ĠInt ) Ġ= Ġuser Dao . delete User ByID ( uid ) ĊĠĠĠ Ġfun ĠgetUser By Username Or Email ( username : ĠString , Ġemail : ĠString ): ĠUser Ġ= Ġuser Dao . getUser By Username Or Email ( username , Ġemail ) ĊĠĠĠ Ġfun ĠgetUser By Username And Password ( username : ĠString , Ġpassword : ĠString ): ĠUser Ġ= Ġuser Dao . getUser By Username And Password ( username , Ġpassword ) Ċ }