Subject: Re-using messages
What is the best way of reusing incoming messages in the OnIQ event handler?
I want to send the message back with extra data but keeping the original ID etc
My function sig in a component is - _OnIq(object sender, agsXMPP.protocol.component.IQ iq)
this is different from the sample documentation which gives:
private void XmppCon_OnIq(object sender, agsXMPP.Xml.Dom.Node e)
Now the iq may be anything from a Disco to a custom message type eg Weather IQ so I need to cast it somehow but the compiler isnt allowing it.
Thanks
I want to send the message back with extra data but keeping the original ID etc
My function sig in a component is - _OnIq(object sender, agsXMPP.protocol.component.IQ iq)
this is different from the sample documentation which gives:
private void XmppCon_OnIq(object sender, agsXMPP.Xml.Dom.Node e)
Now the iq may be anything from a Disco to a custom message type eg Weather IQ so I need to cast it somehow but the compiler isnt allowing it.
Thanks