ContactsViewModel

class ContactsViewModel @Inject constructor(context: Context, nodeRepository: NodeRepository, packetRepository: PacketRepository, radioConfigRepository: RadioConfigRepository, serviceRepository: ServiceRepository) : ViewModel(source)

Constructors

Link copied to clipboard
@Inject
constructor(context: Context, nodeRepository: NodeRepository, packetRepository: PacketRepository, radioConfigRepository: RadioConfigRepository, serviceRepository: ServiceRepository)

Properties

Link copied to clipboard
val channels: StateFlow<AppOnlyProtos.ChannelSet>
Link copied to clipboard
val connectionState: StateFlow<ConnectionState>
Link copied to clipboard
val contactList: StateFlow<List<Contact>>
Link copied to clipboard
val ourNodeInfo: StateFlow<Node?>

Functions

Link copied to clipboard
fun deleteContacts(contacts: List<String>): Job
Link copied to clipboard
fun getNode(userId: String?): Node
Link copied to clipboard
fun setMuteUntil(contacts: List<String>, until: Long): Job