put_contacts


Description:

public bool put_contacts (SList<Contact> contacts, SList<string>? extras, SList<uint32>? custom_flags, CacheOfflineFlag offline_flag, Cancellable? cancellable = null) throws Error

Adds or replaces contacts in this.

If extras is specified, it must have an equal length as the contacts list. Similarly the non-NULL custom_flags length should be the same as the length of the contacts. Each element from the extras list and custom_flags list will be stored in association with its corresponding contact in the contacts list.

Parameters:

this

An BookCache

contacts

A list of contacts to add to this

extras

A list of extra data to store in association with the contacts

custom_flags

optional custom flags to use for the contacts

offline_flag

one of CacheOfflineFlag, whether putting these contacts in offline

cancellable

optional Cancellable object, or null

Returns:

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