yy
2021-02-22 f1ad19e7a828a7969bbce7d2db461b9bdfd71ab6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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 }
        }
    }
}