Back to product page

ContactAuthRequest event


Fires when new contact requests authorization to add you to his contact list.

Syntax

  • Basic
Private Sub object_ContactAuthRequest (ByRef Contact, ByRef Action)
The ContactAuthRequest(Contact,Action) syntax has these parts:
ContactXMPPContact object.
ActionXMPPActionsEnum enumeration

Remarks

This event is fired each time an authorization request is received from someone. The event provides two parameters, Contact and Action.

The Contact parameter provides you with a reference to XMPPContact object which is automatically created by wodXMPP based on information known about requestor.

The Action parameter allows you to decide whether to allow or deny the request. Set this parameter to Allow if you wish to allow user to put you on his contact list. Otherwise set it to Deny. Based on your Action parameter setting, wodXMPP will reply to the server which will then add person to your Contacts list, of will send refusal message to other contact.

Don't forget - you're allowing other side to see when you're online and have you on their list. If you want to see them too, you must ask them for authorization using Subscribe method.

Platforms

Windows