ContactAuthRequest Method
      
 

Description

Called when new contact wants to authorize for his contact list.


Return Type

None  


Syntax

object.ContactAuthRequest Owner, Contact, Accept



The ContactAuthRequest Method syntax has these parts:

Part Description
object An expression evaluating to an object of type IwodXMPPNotify.
Owner Required. A wodXMPP object.
Contact Required. A XMPPContact object.
Accept Required. A Boolean value.

Remarks

This method is called only if you implemented IwodXMPPNotify interface in your application, and wodXMPP.Notification property has received reference to instance of your implementation.

This notification method is called each time an authorization request is received from someone. Two parameters are provided, 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.