Skip to content

Instantly share code, notes, and snippets.

@himchanyoon9212
Created March 1, 2022 16:19
class Repository(private val myDataDao: MyDataDao) {
suspend fun insert(myData: MyData){
myDataDao.insert(myData)
}
suspend fun getAllData(): List<MyData> {
return myDataDao.getAll()
}
suspend fun removeData() {
myDataDao.removeAll()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment