package Ġcom . example . cock tail catalog . models . repositories Ċ Ċ import Ġcom . example . cock tail catalog . models . dao . F avour ite Dr ink Dao Ċ import Ġcom . example . cock tail catalog . models . entities . F avour ite Dr ink Ċ import Ġcom . example . cock tail catalog . models . entities . History Ċ import Ġcom . example . cock tail catalog . models . entities . Local Dr ink Ċ Ċ class ĠF avour ite Dr ink Repository ( private Ġval Ġfavour ite Dr ink Dao : ĠF avour ite Dr ink Dao ) Ġ{ ĊĠĠĠ Ġfun ĠgetAll F avour ites (): ĠList < F avour ite Dr ink > Ġ= Ġfavour ite Dr ink Dao . getAll () ĊĠĠĠ Ġsuspend Ġfun Ġadd ( fav our ite Dr ink : ĠF avour ite Dr ink ): ĠLong Ġ= Ġfavour ite Dr ink Dao . insert ( fav our ite Dr ink ) ĊĠĠĠ Ġsuspend Ġfun Ġdelete ( fav our ite Dr ink : ĠF avour ite Dr ink ) Ġ= Ġfavour ite Dr ink Dao . delete ( fav our ite Dr ink ) Ċ }