Package com.example.examer.viewmodels

Types

Link copied to clipboard
class ExamerLogInViewModel(    authenticationService: AuthenticationService,     passwordManager: PasswordManager,     dispatcherProvider: DispatcherProvider = StandardDispatchersProvider(io = Dispatchers.Main)) : ViewModel, LogInViewModel

This is class represents a viewModel for a login screen.

Link copied to clipboard
class ExamerPreviousTestsViewModel(authenticationService: AuthenticationService, repository: Repository) : ViewModel, PreviousTestsViewModel
Link copied to clipboard
class ExamerSignUpViewModel(    authenticationService: AuthenticationService,     passwordManager: PasswordManager,     credentialsValidationUseCase: CredentialsValidationUseCase,     dispatcherProvider: DispatcherProvider = StandardDispatchersProvider(io = Dispatchers.Main)) : ViewModel, SignUpViewModel, CredentialsValidationUseCase

This is class represents a viewModel for a Sign-up screen.

Link copied to clipboard
class ExamerTestSessionViewModel(    mediaPlayer: MediaPlayer,     testDetails: TestDetails,     workBookList: List<WorkBook>,     markTestAsCompletedUseCase: MarkTestAsCompletedUseCase) : ViewModel, TestSessionViewModel
Link copied to clipboard
class ExamerTestsViewModel(    authenticationService: AuthenticationService,     repository: Repository,     testDetailsListType: TestDetailsListType) : ViewModel, TestsViewModel

A viewModel that can be used to in conjunction with a screen used to display a list of TestDetails items.

Link copied to clipboard
class ExamerWorkBookViewModel(application: Application) : AndroidViewModel, WorkBookViewModel

A concrete implementation of WorkBookViewModel.

Link copied to clipboard
enum LoginUiState : Enum<LoginUiState>

An enum class used to model the different UI states associated with a login screen.

Link copied to clipboard
interface LogInViewModel

An interface that consists of all the fields and methods required for a LogInViewModel.

Link copied to clipboard
interface PreviousTestsViewModel

An interface that specifies the requisite properties and methods required for a concrete implementation of PreviousTestsViewModel.

Link copied to clipboard

An enum class used to model the different UI states associated with a concrete implementation of PreviousTestsViewModel.

Link copied to clipboard
enum SignUpUiFailureType : Enum<SignUpUiFailureType>

An enum class used to model the different UI states associated with a SignUp screen.

Link copied to clipboard
sealed class SignUpUiState

A sealed class representing the different UI states associated with a SignUpScreen.

Link copied to clipboard
interface SignUpViewModel

An interface that consists of all the fields and methods required for a SignUpViewModel.

Link copied to clipboard
enum TestDetailsListType : Enum<TestDetailsListType>

An enum indicating which type of TestDetails list a particular instance of ExamerTestsViewModel will be working with.

Link copied to clipboard
interface TestSessionViewModel

An interface that contains the methods and properties that are required for a concrete implementation of TestSessionViewModel.

Link copied to clipboard
interface TestsViewModel

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

Link copied to clipboard
enum TestsViewModelUiState : Enum<TestsViewModelUiState>

An enum indicating the state of a screen using TestsViewModel.

Link copied to clipboard
interface WorkBookViewModel

An interface that contains the requisite methods for a concrete implementation of WorkBookViewModel.