net.java.sip.communicator.impl.protocol.jabber.extensions.jingle
Class MuteSessionInfoPacketExtension
java.lang.Object
net.java.sip.communicator.impl.protocol.jabber.extensions.AbstractPacketExtension
net.java.sip.communicator.impl.protocol.jabber.extensions.jingle.SessionInfoPacketExtension
net.java.sip.communicator.impl.protocol.jabber.extensions.jingle.MuteSessionInfoPacketExtension
- All Implemented Interfaces:
- org.jivesoftware.smack.packet.PacketExtension
public class MuteSessionInfoPacketExtension
- extends SessionInfoPacketExtension
Represents the mute and unmute session info types.
- Author:
- Emil Ivov
|
Method Summary |
String |
getName()
Returns the name of the session that this extension is pertaining to or
null if it is referring to all active sessions. |
boolean |
isMute()
Determines if this session info packet represents a mute. |
| Methods inherited from class net.java.sip.communicator.impl.protocol.jabber.extensions.AbstractPacketExtension |
addChildExtension, getAttribute, getAttributeAsInt, getAttributeAsInt, getAttributeAsString, getAttributeAsURI, getAttributeNames, getChildExtensions, getChildExtensionsOfType, getElementName, getFirstChildOfType, getNamespace, getText, removeAttribute, setAttribute, setNamespace, setText, toXML |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME_ATTR_VALUE
public static final String NAME_ATTR_VALUE
- The name of the name mute attribute.
- See Also:
- Constant Field Values
MuteSessionInfoPacketExtension
public MuteSessionInfoPacketExtension(boolean mute,
String name)
- Creates a SessionInfoPacketExtension instance corresponding to
either the
SessionInfoType.mute or SessionInfoType.unmute
types according to the value of the mute parameter.
- Parameters:
mute - true if the new instance is to be of the
SessionInfoType.mute type and false for a SessionInfoType.unmutename - the name of the session to be muted or null if the
element pertains to all active sessions
isMute
public boolean isMute()
- Determines if this session info packet represents a mute.
- Returns:
- true if this packet represents a
SessionInfoType.mute and false otherwise.
getName
public String getName()
- Returns the name of the session that this extension is pertaining to or
null if it is referring to all active sessions.
- Returns:
- the name of the session that this extension is pertaining to or
null if it is referring to all active sessions.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.