Searched refs:InsertedRecordsState (Results 1 – 2 of 2) sorted by relevance
31 private val _insertedRecordsState = MutableLiveData<InsertedRecordsState>()32 val insertedRecordsState: LiveData<InsertedRecordsState>43 _insertedRecordsState.postValue(InsertedRecordsState.WithData(response)) in insertRecordsViaViewModel()46 InsertedRecordsState.Error(exception.localizedMessage!!)) in insertRecordsViaViewModel()49 InsertedRecordsState.Error(exception.localizedMessage!!)) in insertRecordsViaViewModel()69 sealed class InsertedRecordsState { class in com.android.healthconnect.testapps.toolbox.viewmodels.InsertOrUpdateRecordsViewModel70 data class Error(val errorMessage: String) : InsertedRecordsState()71 data class WithData(val entries: List<Record>) : InsertedRecordsState()
102 is InsertOrUpdateRecordsViewModel.InsertedRecordsState.WithData -> { in <lambda>()105 is InsertOrUpdateRecordsViewModel.InsertedRecordsState.Error -> { in <lambda>()