package safeluck.drive.evaluation.DB.lightdb
|
|
import kotlinx.coroutines.Dispatchers.IO
|
import kotlinx.coroutines.withContext
|
|
/**DriveJudge
|
* Created by lzw on 2021/1/15. 10:01:31
|
* 邮箱:632393724@qq.com
|
* All Rights Saved! Chongqing AnYun Tech co. LTD
|
*/
|
class LightAllQuestRepository private constructor(
|
private val lightdefaulDao: LightAllQuestionsDao
|
){
|
|
|
|
|
fun getLightAllQuestions() = lightdefaulDao.allLightQuestions
|
|
|
companion object{
|
@Volatile
|
private var instance:LightAllQuestRepository ?= null
|
|
fun getInstance(lightdefaulDao: LightAllQuestionsDao)= instance?: synchronized(this){
|
instance?: LightAllQuestRepository(lightdefaulDao).also { instance = it }
|
}
|
}
|
}
|