|
# File jabber4r/protocol.rb, line 461
def Iq.gen_registration(session, id, username, password, email, name)
iq = Iq.new(session, id)
iq.type = "set"
iq.data = XMLElement.new("username").add_data(username).to_s
iq.data << XMLElement.new("password").add_data(password).to_s
iq.data << XMLElement.new("email").add_data(email).to_s
iq.data << XMLElement.new("name").add_data(name).to_s
return iq
end
|