ContactsViewModel

class ContactsViewModel(nodeRepository: ERROR CLASS: Symbol not found for NodeRepository, packetRepository: ERROR CLASS: Symbol not found for PacketRepository, radioConfigRepository: ERROR CLASS: Symbol not found for RadioConfigRepository, serviceRepository: ERROR CLASS: Symbol not found for ServiceRepository) : <ERROR CLASS> ERROR CLASS: Symbol not found for ViewModel(source)

Constructors

Link copied to clipboard
constructor(nodeRepository: ERROR CLASS: Symbol not found for NodeRepository, packetRepository: ERROR CLASS: Symbol not found for PacketRepository, radioConfigRepository: ERROR CLASS: Symbol not found for RadioConfigRepository, serviceRepository: ERROR CLASS: Symbol not found for ServiceRepository)

Properties

Link copied to clipboard
val channels: ERROR CLASS: Unresolved name: stateInWhileSubscribed
Link copied to clipboard
val connectionState: ERROR CLASS: Unresolved name: connectionState
Link copied to clipboard
val contactList: ERROR CLASS: Unresolved name: stateInWhileSubscribed

Non-paginated contact list.

Link copied to clipboard
val contactListPaged: ERROR CLASS: Symbol not found for Flow<ERROR CLASS: Symbol not found for PagingData<ERROR CLASS: Symbol not found for Contact>>
Link copied to clipboard
val ourNodeInfo: ERROR CLASS: Unresolved name: ourNodeInfo
Link copied to clipboard
val unreadCountTotal: ERROR CLASS: Unresolved name: stateInWhileSubscribed

Functions

Link copied to clipboard
fun deleteContacts(contacts: List<String>): ERROR CLASS: Unresolved name: launch
Link copied to clipboard
fun getContactSettings(): ERROR CLASS: Unresolved name: getContactSettings
Link copied to clipboard
fun getNode(userId: String?): ERROR CLASS: Unresolved name: getNode
Link copied to clipboard
suspend fun getTotalMessageCount(contactKeys: List<String>): Int

Get the total message count for a list of contact keys. This queries the repository directly, so it works even if contacts aren't loaded in the paged list.

Link copied to clipboard
fun markAllAsRead(): ERROR CLASS: Unresolved name: launch
Link copied to clipboard
fun setContactFilteringDisabled(contactKey: String, disabled: Boolean)
Link copied to clipboard
fun setMuteUntil(contacts: List<String>, until: Long): ERROR CLASS: Unresolved name: launch