request_subscription_async


Description:

[ Version ( since = "0.15.5" ) ]
public async bool request_subscription_async (Contact[] contacts, string message) throws Error

Request that the given contacts allow the local user to subscribe to their presence, i.e. that their subscribe_state property becomes YES.

For this to work properly this must have interface IFACE_CONNECTION_INTERFACE_CONTACT_LIST .

Parameters:

this

a Connection

contacts

An array of Contact objects to whom requests are to be sent.

message

an optional plain-text message from the user, to send to those contacts with the subscription request.

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