Searched refs:UpdatedRecordsState (Results 1 – 2 of 2) sorted by relevance
35 private val _updatedRecordsState = MutableLiveData<UpdatedRecordsState>()36 val updatedRecordsState: LiveData<UpdatedRecordsState>58 _updatedRecordsState.postValue(UpdatedRecordsState.Success) in updateRecordsViaViewModel()61 UpdatedRecordsState.Error(exception.localizedMessage!!)) in updateRecordsViaViewModel()64 UpdatedRecordsState.Error(exception.localizedMessage!!)) in updateRecordsViaViewModel()74 sealed class UpdatedRecordsState { class in com.android.healthconnect.testapps.toolbox.viewmodels.InsertOrUpdateRecordsViewModel75 data class Error(val errorMessage: String) : UpdatedRecordsState()76 object Success : UpdatedRecordsState()
116 if (state is InsertOrUpdateRecordsViewModel.UpdatedRecordsState.Error) { in <lambda>()