block_contacts_async


Description:

[ Version ( since = "0.17.0" ) ]
public async bool block_contacts_async (Contact[] contacts, bool report_abusive) throws Error

Direct the server to block contacts.

Parameters:

this

a Connection

contacts

An array of Contact objects to block

report_abusive

If true, report these contacts as abusive to the server administrators as well as blocking them. See can_report_abusive to discover whether reporting abuse is supported. If can_report_abusive is false, this parameter will be ignored.

callback

a callback to call when the operation finishes

n_contacts

the number of contacts in contacts (must be at least 1)

user_data

data to pass to callback