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

AgendaRx

class AgendaRx

Reactive API of Agenda.

This class replicates some of the methods included in Agenda but using Rx types as return values instead of callbacks.

Properties

contactAdded

val contactAdded: Observable<Contact>

Emits when a Contact is added.

contactDeleted

val contactDeleted: Observable<Contact>

Emits when a Contact is removed.

contactUpdated

val contactUpdated: Observable<Contact>

Emits when a Contact gets updated.

Functions

createContact

fun createContact(contact: Contact): Completable

Adds a new contact.

deleteContact

fun deleteContact(contact: Contact): Completable

Deletes the specified contact.

getContacts

fun getContacts(sources: List<Source>): Single<List<Contact>>

Fetches all the contacts from the specified sources.

updateContact

fun updateContact(contact: Contact): Completable

Updates an existing contact.