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

Link copied to clipboard
val contactAdded: Observable<Contact>

Emits when a Contact is added.

Link copied to clipboard
val contactDeleted: Observable<Contact>

Emits when a Contact is removed.

Link copied to clipboard
val contactUpdated: Observable<Contact>

Emits when a Contact gets updated.

Functions

Link copied to clipboard
fun createContact(contact: Contact): Completable

Adds a new contact.

Link copied to clipboard
fun deleteContact(contact: Contact): Completable

Deletes the specified contact.

Link copied to clipboard
fun getContactBy(contactId: String): Single<Contact>

Fetch contact from the specified contactId.

Link copied to clipboard
fun getContactByUserName(userName: String): Single<Contact>

Retrieves a contact by their userName.

Link copied to clipboard
fun getContactByUserNameAndDomain(userName: String, domain: String): Single<Contact>

Retrieves a contact by their userName and associated domain.

Link copied to clipboard
fun getContacts(query: SourceQuery): Single<List<Contact>>

Fetches all the contacts from the specified query.

Link copied to clipboard
fun getContactsByEmail(email: String): Single<List<Contact>>

Fetches contacts from the specified email.

Link copied to clipboard
fun getContactsByUserId(userId: String): Single<List<Contact>>

Fetches contacts from the specified userId.

Link copied to clipboard
fun resolveIdentifier(identifier: String): Single<Contact>

Resolves an identifier to obtain a contact.

Link copied to clipboard
fun updateContact(contact: Contact): Completable

Updates an existing contact.