Back to product page

PreTranslateReply callback method


Called before wodXMPP processes server's reply.

Syntax

  • Basic
object.PreTranslateReply (Owner, Reply)
The PreTranslateReply(object,Owner,Reply) syntax has these parts:
objectAn expression evaluating to an object of type IwodXMPPNotify
OwnerAn expression evaluating to an object of type wodXMPP
ReplyA String value. Holds reply text returned by the server.

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 can be used for monitoring replies that server sent as a result from our commands, before it is actually processed by wodXMPP. At this point you can change Reply argument values to anything you like - and wodXMPP will think it received reply as you defined it here.

Beware - what you're doing here is dangerous for wodXMPP. You may break its internal mechanism of behavior, and strange results may occur. But - to provide you with more freedom over what's going on 'under the hood', we have provided this notification method for advanced users.

Platforms

Windows