add_contacts


Description:

public bool add_contacts (SList<Contact> contacts, SList<string>? extra, bool replace, Cancellable? cancellable = null) throws Error

Adds or replaces contacts in this.

If replace_existing is specified then existing contacts with the same UID will be replaced, otherwise adding an existing contact will return an error.

If extra is specified, it must have an equal length as the contacts list. Each element from the extra list will be stored in association with it's corresponding contact in the contacts list.

Parameters:

this

An BookSqlite

contacts

A list of contacts to add to this

extra

A list of extra data to store in association with this contact

replace

Whether this contact should replace another contact with the same UID.

cancellable

A Cancellable

Returns:

true on success, otherwise false is returned and throws is set appropriately.