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.
val rx: AgendaRx
Access to the reactive API of the service. |
fun addListener(listener: AgendaListener): Unit
Adds a listener to receive agenda events. |
|
fun createContact(contact: Contact, onCompletion: (SippoResourceError?) -> Unit): Unit
Adds a new contact. |
|
fun deleteContact(contact: Contact, onCompletion: (SippoResourceError?) -> Unit): Unit
Deletes the specified contact. |
|
fun getContacts(sources: List<Source>, onCompletion: (Either<List<Contact>, SippoResourceError>) -> Unit): Unit
Fetches all the contacts from the specified sources. |
|
fun removeListener(listener: AgendaListener): Unit
Removes the specified listener. |
|
fun updateContact(contact: Contact, onCompletion: (SippoResourceError?) -> Unit): Unit
Updates an existing contact. |