/// <summary> /// </summary> /// <param name="room"> /// </param> /// <param name="items"> /// </param> /// <param name="cb"> /// </param> public void ModifyList(Jid room, iq.admin.Item[] items, IqCB cb) { ModifyList(room, items, cb, null); }
/// <summary> /// </summary> /// <param name="room"> /// </param> /// <param name="items"> /// </param> /// <param name="cb"> /// </param> /// <param name="cbArg"> /// </param> public void ModifyList(Jid room, iq.admin.Item[] items, IqCB cb, object cbArg) { AdminIq aIq = new AdminIq(); aIq.To = room; aIq.Type = IqType.set; foreach (iq.admin.Item itm in items) { aIq.Query.AddItem(itm); } if (cb == null) { m_connection.Send(aIq); } else { m_connection.IqGrabber.SendIq(aIq, cb, cbArg); } }
/// <summary> /// </summary> /// <param name="room"> /// </param> /// <param name="items"> /// </param> public void ModifyList(Jid room, iq.admin.Item[] items) { ModifyList(room, items, null, null); }