Agenda

class Agenda

The agenda service.

This class allows performing agenda related actions like adding a new contact, updating an existing one or fetching the contacts from specific sources.

Properties

Link copied to clipboard

Access to the reactive API of the service.

Functions

Link copied to clipboard

Adds a listener to receive agenda events.

Link copied to clipboard

Marks the current cache as dirty. Any subsequent getContacts requests will fetch new data from the network data source.

Link copied to clipboard
fun createContact(contact: Contact, onCompletion: (SippoResourceError?) -> Unit)

Adds a new contact.

Link copied to clipboard
fun deleteContact(contact: Contact, onCompletion: (SippoResourceError?) -> Unit)

Deletes the specified contact.

Link copied to clipboard
fun getContactBy(contactId: String, onCompletion: (Either<Contact, SippoResourceError>) -> Unit)

Fetch contact from the specified contactId.

Link copied to clipboard
fun getContactByUserName(userName: String, onCompletion: (Either<Contact, SippoResourceError>) -> Unit)

Retrieves a contact by their userName.

Link copied to clipboard
fun getContactByUserNameAndDomain(userName: String, domain: String, onCompletion: (Either<Contact, SippoResourceError>) -> Unit)

Retrieves a contact by their userName and associated domain.

Link copied to clipboard
fun getContacts(query: SourceQuery, onCompletion: (Either<List<Contact>, SippoResourceError>) -> Unit)

Fetches all the contacts from the specified query.

Link copied to clipboard

Fetches contacts from the specified email.

Link copied to clipboard

Fetches contacts from the specified userId.

Link copied to clipboard

Removes the specified listener.

Link copied to clipboard
fun resolveIdentifier(identifier: String, onCompletion: (Either<Contact, SippoResourceError>) -> Unit)

Resolves an identifier to obtain a contact.

Link copied to clipboard
fun updateContact(contact: Contact, onCompletion: (SippoResourceError?) -> Unit)

Updates an existing contact.