FakeContactRepository

A test double for contact management operations.

Maintains a list of contacts and provides helpers for contact-related tests.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
data class Contact(val userId: String, val name: String, val lastMessageTime: Long = 0)

Properties

Link copied to clipboard
val contactsFlow: ERROR CLASS: Symbol not found for Flow<kotlin/collections/List<org/meshtastic/core/testing/FakeContactRepository.Contact>>

Functions

Link copied to clipboard
Link copied to clipboard
fun clear()
Link copied to clipboard
fun getAllContacts(): List<ERROR CLASS: Cannot infer argument for type parameter T>
Link copied to clipboard
Link copied to clipboard
fun getContactCount(): ERROR CLASS: Unresolved name: size
Link copied to clipboard
suspend fun removeContact(userId: String)
Link copied to clipboard
suspend fun updateContactLastMessage(userId: String, time: Long)