# File jabber4r/protocol.rb, line 481 def Iq.gen_add_rosteritem(session, id, jid, name) iq = Iq.new(session, id) iq.type = "set" iq.data = XMLElement.new("item").add_attribute("jid", jid).add_attribute("name", name).to_s return iq end