package Ġorg . z java . android . quartz . data . repository Ċ Ċ import Ġandroidx . annotation . Worker Thread Ċ import Ġkotlinx . coroutines . flow . Flow Ċ import Ġorg . z java . android . quartz . data . local . Device Dao Ċ import Ġorg . z java . android . quartz . data . model . Device Ċ Ċ class ĠDevice Repository ( private Ġval Ġdevice Dao : ĠDevice Dao ) Ġ{ ĊĊĠĠĠ Ġval Ġall Devices : ĠFlow < List < Device >> Ġ= Ġdevice Dao . load All () ĊĊĠĠĠ Ġ@ Suppress (" Red undant Suspend Modifier ") ĊĠĠĠ Ġ@ Worker Thread ĊĠĠĠ Ġsuspend Ġfun Ġinsert ( device : ĠDevice ) Ġ{ ĊĠĠĠĠĠĠĠ Ġdevice Dao . insert ( device ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Suppress (" Red undant Suspend Modifier ") ĊĠĠĠ Ġ@ Worker Thread ĊĠĠĠ Ġsuspend Ġfun Ġupdate ( device : ĠDevice ) Ġ{ ĊĠĠĠĠĠĠĠ Ġdevice Dao . update ( device ) ĊĠĠĠ Ġ} Ċ }