sippo-sdk / com.quobis.sippo.sipposdk.agenda / Agenda

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

rx

val rx: AgendaRx

Access to the reactive API of the service.

Functions

addListener

fun addListener(listener: AgendaListener): Unit

Adds a listener to receive agenda events.

createContact

fun createContact(contact: Contact, onCompletion: (SippoResourceError?) -> Unit): Unit

Adds a new contact.

deleteContact

fun deleteContact(contact: Contact, onCompletion: (SippoResourceError?) -> Unit): Unit

Deletes the specified contact.

getContacts

fun getContacts(sources: List<Source>, onCompletion: (Either<List<Contact>, SippoResourceError>) -> Unit): Unit

Fetches all the contacts from the specified sources.

removeListener

fun removeListener(listener: AgendaListener): Unit

Removes the specified listener.

updateContact

fun updateContact(contact: Contact, onCompletion: (SippoResourceError?) -> Unit): Unit

Updates an existing contact.