package Ġcom . example . room demo . db Ċ Ċ class ĠSubscriber Repository ( private Ġval Ġdao : ĠSubscriber DAO ) Ġ{ ĊĊĠĠĠ Ġval Ġsubscribers Ġ= Ġdao . getAll Sub scribers () ĊĊĠĠĠ Ġsuspend Ġfun Ġinsert ( subscriber : ĠSubscriber ) Ġ{ ĊĠĠĠĠĠĠĠ Ġdao . insert Subscriber ( subscriber ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġsuspend Ġfun Ġupdate ( subscriber : ĠSubscriber ) Ġ{ ĊĠĠĠĠĠĠĠ Ġdao . update Subscriber ( subscriber ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġsuspend Ġfun Ġdelete ( subscriber : ĠSubscriber ) Ġ{ ĊĠĠĠĠĠĠĠ Ġdao . delete Subscriber ( subscriber ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġsuspend Ġfun Ġdelete All () Ġ{ ĊĠĠĠĠĠĠĠ Ġdao . delete All () ĊĠĠĠ Ġ} Ċ } Ċ