fctom1215
2021-04-28 148254bb1dc170db320bcb208ca79b0e252751d8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package safeluck.drive.evaluation.DB.lightdb
 
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.cancel
import kotlinx.coroutines.launch
 
/**DriveJudge
 * Created by lzw on 2021/1/15. 09:46:49
 * 邮箱:632393724@qq.com
 * All Rights Saved! Chongqing AnYun Tech co. LTD
 */
class LightQuestsViewModel internal constructor(private  val lightDefaultRepository: LightAllQuestRepository): ViewModel() {
    var allDefaultQuestion2Answers = lightDefaultRepository.getLightAllQuestions()
 
    @ExperimentalCoroutinesApi
    override fun onCleared() {
        super.onCleared()
        viewModelScope.cancel()
    }
}