public class StatePacketExtension extends AbstractPacketExtension
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELEMENT_ACTIVE
Active element name.
|
static java.lang.String |
ELEMENT_LOCKED
Locked element name.
|
static java.lang.String |
ELEMENT_NAME
The name of the element that contains the state data.
|
static java.lang.String |
ELEMENT_USER_COUNT
Users count element name.
|
static java.lang.String |
NAMESPACE
The namespace that state belongs to.
|
attributes
Constructor and Description |
---|
StatePacketExtension()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getActive()
Get the active state.
|
int |
getLocked()
Get the locked state.
|
int |
getUserCount()
Get the user count.
|
void |
setActive(int active)
Set the active state.
|
void |
setLocked(int locked)
Set the locked state.
|
void |
setUserCount(int userCount)
Set the user count.
|
java.lang.String |
toXML()
Get an XML string representation.
|
addChildExtension, addPacket, clone, getAttribute, getAttributeAsInt, getAttributeAsInt, getAttributeAsString, getAttributeAsURI, getAttributeNames, getChildExtensions, getChildExtensionsOfType, getElementName, getFirstChildOfType, getNamespace, getPackets, getText, removeAttribute, setAttribute, setNamespace, setText
public static final java.lang.String NAMESPACE
public static final java.lang.String ELEMENT_NAME
public static final java.lang.String ELEMENT_USER_COUNT
public static final java.lang.String ELEMENT_ACTIVE
public static final java.lang.String ELEMENT_LOCKED
public void setUserCount(int userCount)
userCount
- user countpublic void setActive(int active)
active
- statepublic void setLocked(int locked)
locked
- locked statepublic int getUserCount()
public int getActive()
public int getLocked()
public java.lang.String toXML()
toXML
in interface org.jivesoftware.smack.packet.PacketExtension
toXML
in class AbstractPacketExtension
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.