/// <summary> /// Create an x:data form from the given iq stanza. /// </summary> /// <param name="parent">Original stanza</param> public XDataForm(jabber.protocol.client.IQ parent) : this(FindData(parent)) { m_stanza = (Packet)parent.CloneNode(true); Data d = FindData(m_stanza); m_parent = (Element)d.ParentNode; m_parent.RemoveChild(d); }
void jabberClient_OnIQ(object sender, jabber.protocol.client.IQ iq) { if (iq.Type != IQType.get) { return; } XmlElement query = iq.Query; if (query == null) { return; } // Detect and respond to RTT feature disco here. // For more info, see http://code.google.com/p/jabber-net/source/browse/trunk/Example/MainForm.cs }