@NotThreadSafe public class LeaveRoom extends Presence
Code example:
// Join an existing room or create a new one.
JoinRoom joinRoom = new JoinRoom("john@jabber.org/notebook", "room@conference.jabber.org/nick");
component.sendPacket(joinRoom);
Presence.Show, Presence.TypedocFactory, element, fromJID, toJID| Constructor and Description |
|---|
LeaveRoom(String from,
String to)
Creates a new Presence packet that could be sent to a MUC service in order to leave the room.
|
addChildElement, createCopy, getChildElement, getPriority, getShow, getStatus, getType, isAvailable, setPriority, setShow, setStatus, setTypeaddExtension, deleteExtension, getElement, getError, getExtension, getFrom, getID, getTo, setError, setError, setFrom, setFrom, setID, setTo, setTo, toString, toXMLpublic LeaveRoom(String from, String to)
from - the full JID of the user that wants to leave the room.to - the room JID. That is the room address plus the nickname of the user as a resource.Copyright © 2009–2017 Ignite Realtime. All rights reserved.