PhoneCallLogViewModel

class PhoneCallLogViewModel(val getServerConfigurationUseCase: GetServerConfigurationUseCase, val getAllPhoneCallLogEntriesUseCase: GetAllPhoneCallLogEntriesUseCase) : ViewModel

A ViewModel managing phone call log data and its presentation. It is responsible for loading and managing the phone call log entries and server configuration data, providing the necessary information for the UI to display.

Constructors

Link copied to clipboard
constructor(getServerConfigurationUseCase: GetServerConfigurationUseCase, getAllPhoneCallLogEntriesUseCase: GetAllPhoneCallLogEntriesUseCase)

Properties

Link copied to clipboard
private val _viewState: MutableStateFlow<PhoneCallLogViewState>
Link copied to clipboard
Link copied to clipboard
private var mCleared: Boolean
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun <T : Any> getTag(p0: String): T
Link copied to clipboard
private fun loadData()

Loads the phone call log entries and tbe server configuration. After they are loaded, the PhoneCallLogViewState.Success state is emitted filled with the loaded data.

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