/// <summary> /// Modifies the roster item to look like the given roster item. /// This does not modify the model, /// but waits for roster pushes from the XMPP server. /// </summary> /// <param name="item">Roster item that will appear in the roster.</param> public void Modify(Item item) { RosterIQ iq = new RosterIQ(m_stream.Document); iq.Type = IQType.set; Roster r = iq.Instruction; if (item.OwnerDocument != m_stream.Document) { r.AppendChild(item.CloneNode(true, m_stream.Document)); } else { r.AppendChild(item); } Write(iq); // ignore response }
/// <summary> /// Modifies the roster item to look like the given roster item. /// This does not modify the model, /// but waits for roster pushes from the XMPP server. /// </summary> /// <param name="item">Roster item that will appear in the roster.</param> public void Modify(Item item) { RosterIQ iq = new RosterIQ(m_stream.Document); iq.Type = IQType.set; Roster r = iq.Instruction; r.AppendChild(item); Write(iq); // ignore response }