Searched refs:AllDataState (Results 1 – 3 of 3) sorted by relevance
44 private val _allData = MutableLiveData<AllDataState>()51 val allData: LiveData<AllDataState>55 _allData.postValue(AllDataState.Loading) in loadAllData()59 _allData.postValue(AllDataState.WithData(result.data)) in loadAllData()62 _allData.postValue(AllDataState.Error) in loadAllData()95 sealed class AllDataState { class96 object Loading : AllDataState()98 object Error : AllDataState()100 data class WithData(val dataMap: List<PermissionTypesPerCategory>) : AllDataState()
139 is AllDataViewModel.AllDataState.Loading -> { in <lambda>()146 is AllDataViewModel.AllDataState.Error -> { in <lambda>()149 is AllDataViewModel.AllDataState.WithData -> { in <lambda>()
94 val testObserver = TestObserver<AllDataViewModel.AllDataState>() in <lambda>()108 .isEqualTo(AllDataViewModel.AllDataState.WithData(expected)) in <lambda>()136 val testObserver = TestObserver<AllDataViewModel.AllDataState>() in <lambda>()153 .isEqualTo(AllDataViewModel.AllDataState.WithData(expected)) in <lambda>()