PhoneCallRepositoryImpl

internal class PhoneCallRepositoryImpl(val logger: Logger, val ongoingPhoneCallDataSource: OngoingPhoneCallDataSource, val phoneCallLogDataSource: PhoneCallLogDataSource, val contactNameDataSource: ContactNameDataSource, val phoneCallMetadataDataSource: PhoneCallMetadataDataSource) : PhoneCallRepository

A repository for managing phone calls. It handles the current phone call events, as well as the history of phone calls.

Constructors

Link copied to clipboard
constructor(logger: Logger, ongoingPhoneCallDataSource: OngoingPhoneCallDataSource, phoneCallLogDataSource: PhoneCallLogDataSource, contactNameDataSource: ContactNameDataSource, phoneCallMetadataDataSource: PhoneCallMetadataDataSource)

Properties

Link copied to clipboard
Link copied to clipboard
private val logger: Logger

Functions

Link copied to clipboard
open suspend override fun getAll(): List<PhoneCallLogEntryDomainModel>
Link copied to clipboard
open override fun getAllRx(): Flow<List<PhoneCallLogEntryDomainModel>>
Link copied to clipboard
open suspend override fun getOngoing(): OngoingPhoneCallDomainModel?
Link copied to clipboard
open suspend override fun setEnded(event: PhoneCallEventDomainModel.PhoneCallEnd)
Link copied to clipboard
open suspend override fun setStarted(event: PhoneCallEventDomainModel.PhoneCallStart)