TestsViewModel

interface TestsViewModel

An interface that contains all the properties and methods required for a concrete implementation of TestsViewModel

Functions

Link copied to clipboard
abstract fun fetchWorkBookListForTestDetails(    testDetails: TestDetails,     @MainThread onSuccess: (List<WorkBook>) -> Unit,     @MainThread onFailure: (Throwable) -> Unit? = null)

Used to fetch a list of workbooks for the specified test.

Link copied to clipboard
abstract fun markTestAsMissed(testDetails: TestDetails)

Used to mark the specified test as missed.

Link copied to clipboard
abstract fun refreshTestDetailsList()

Used to refresh testDetailsList.

Properties

Link copied to clipboard
abstract val testDetailsList: State<List<TestDetails>>

A state property that is holds a list of TestDetails.

Link copied to clipboard
abstract val testsViewModelUiState: State<TestsViewModelUiState>

A state property that holds that hold the current TestsViewModelUiState.

Inheritors

Link copied to clipboard