package Ġcom . ed t . ut 3 . backend . database . view models Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġcom . ed t . ut 3 . backend . database . App Database Ċ import Ġcom . ed t . ut 3 . backend . maps . Place Ċ Ċ class ĠPlace ViewModel ( context : ĠContext ): ĠViewModel () Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġdao Ġ= ĠApp Database . getInstance ( context ). place Dao () ĊĊĠĠĠ Ġsuspend Ġfun Ġinsert ( var arg Ġplace : ĠPlace ) Ġ= Ġdao . insert (* place ) ĊĊĠĠĠ Ġsuspend Ġfun Ġdelete ( var arg Ġplace : ĠPlace ) Ġ= Ġdao . delete (* place ) ĊĊĠĠĠ Ġsuspend Ġfun Ġselect All () Ġ= Ġdao . selectAll () ĊĊĠĠĠ Ġfun Ġselect All LD () Ġ= Ġdao . selectAll LD () Ċ Ċ }