ExamerPreviousTestsViewModel

class ExamerPreviousTestsViewModel(authenticationService: AuthenticationService, repository: Repository) : ViewModel, PreviousTestsViewModel

Constructors

Link copied to clipboard
fun ExamerPreviousTestsViewModel(authenticationService: AuthenticationService, repository: Repository)

Functions

Link copied to clipboard
fun clear()
Link copied to clipboard
open fun <T : Any> getTag(p0: String): T
Link copied to clipboard
open fun onCleared()
Link copied to clipboard
open override fun refreshPreviousTestsList()

Used to refresh the previous test list.

Link copied to clipboard
open fun <T : Any> setTagIfAbsent(p0: String, p1: T): T

Properties

Link copied to clipboard
open override val testResultsMap: State<Map<TestDetails, TestResult>>

A state property that contains the a map that stores TestDetails object and the associated TestResult object.

Link copied to clipboard
open override val uiState: State<PreviousTestsViewModelUiState>

A state property that contains the current PreviousTestsViewModelUiState.