Contacts

interface Contacts

This module provides methods to interact with and retrieve information about contacts. Users can utilize methods provided in this module to manage their contact list, search for specific contacts, and perform various actions with the IRainbowContact object.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val personalContacts: ArrayItemList<IRainbowContact>

Retrieves the personal contacts of the user.

Link copied to clipboard
abstract val roster: ArrayItemList<IRainbowContact>

Retrieves the user roster.

Functions

Link copied to clipboard
abstract fun createPersonalDirectoryContact(contact: DirectoryContactEntry, listener: RainbowListener<IRainbowContact, Unit>? = null)

Creates a personal directory contact.

Link copied to clipboard
abstract fun deletePersonalDirectoryContact(contact: DirectoryContactEntry, listener: RainbowListener<Unit, Unit>? = null)

Deletes a personal directory contact.

Link copied to clipboard
abstract fun fetchContactDataById(id: String?, listener: RainbowListener<IRainbowContact, UserRepository.FetchUserDataError>? = null)

Fetches contact data by ID.

Link copied to clipboard
abstract fun fetchContactDataByJid(jid: String?, listener: RainbowListener<IRainbowContact, Unit>?)

Searches for contacts by Jabber ID (JID).

Link copied to clipboard
abstract fun fetchPersonalContacts(listener: RainbowListener<List<IRainbowContact>, Unit>? = null)

Fetches the personal contacts of the user.

Link copied to clipboard
abstract fun getContactFromEmail(email: String?): IRainbowContact?

Retrieves a contact based on their email address.

Link copied to clipboard
abstract fun getContactFromId(contactId: String?): IRainbowContact?

Retrieves a contact based on their identifier.

Link copied to clipboard
abstract fun getContactFromJid(jid: String?): IRainbowContact?

Retrieves a contact based on their Jabber ID (JID).

Link copied to clipboard
abstract fun getContactFromMobilePhoneNumber(number: String?): IRainbowContact?

Retrieves a contact based on their mobile phone number.

Link copied to clipboard
abstract fun getContactFromPhoneNumber(number: String?): IRainbowContact?

Retrieves a contact based on their phone number.

Link copied to clipboard
abstract fun getContactFromUniqueId(uniqueId: String?): IRainbowContact?

Retrieves a contact based on their unique identifier.

Link copied to clipboard
abstract fun isLoggedInUser(contact: IRainbowContact?): Boolean

Checks if a given contact is the same as the logged-in user.

Link copied to clipboard
abstract fun refreshContactLastActivityDate(contact: IRainbowContact?)

Refreshes the last activity date of the contact from the server.

Link copied to clipboard
abstract fun updateCalendarAutomaticReply(contact: IRainbowContact?)

Updates the contact's calendar automatic reply from the server.

Link copied to clipboard
abstract fun updatePersonalDirectoryContact(contact: DirectoryContactEntry, listener: RainbowListener<IRainbowContact, Unit>? = null)

Updates a personal directory contact.