| Represents an invitation to a Multi-User Chat room from a room occupant to a user that is not
an occupant of the room. The invitation must be sent to the room and it's the room
responsibility to forward the invitation to the invitee. The sender of the invitation must be
the real full JID of the inviter.
Code example:
// Invite the someone to the room.
Invitation invitation = new Invitation("invitee@jabber.org", "Join this excellent room");
invitation.setTo("room@conference.jabber.org");
invitation.setFrom("inviter@jabber.org/notebook");
component.sendPacket(invitation);
author: Gaston Dombiak |