block_async


Description:

[ Version ( since = "0.17.0" ) ]
public async bool block_async (bool report_abusive) throws Error

Block communications with a contact, optionally reporting the contact as abusive to the server administrators.

To block more than one contact at once, see block_contacts_async.

Parameters:

this

a Contact

report_abusive

If true, report this contact as abusive to the server administrators as well as blocking him. 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

user_data

data to pass to callback