|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jivesoftware.smackx.workgroup.packet.QueueUpdate
public class QueueUpdate
An IQ packet that encapsulates both types of workgroup queue status notifications -- position updates, and estimated time left in the queue updates.
Nested Class Summary | |
---|---|
static class |
QueueUpdate.Provider
|
Field Summary | |
---|---|
static String |
ELEMENT_NAME
Element name of the packet extension. |
static String |
NAMESPACE
Namespace of the packet extension. |
Constructor Summary | |
---|---|
QueueUpdate(int position,
int remainingTime)
|
Method Summary | |
---|---|
String |
getElementName()
Returns the root element name. |
String |
getNamespace()
Returns the root element XML namespace. |
int |
getPosition()
Returns the user's position in the workgroup queue, or -1 if the value isn't set on this packet. |
int |
getRemaingTime()
Returns the user's estimated time left in the workgroup queue, or -1 if the value isn't set on this packet. |
String |
toXML()
Returns the XML reppresentation of the PacketExtension. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ELEMENT_NAME
public static final String NAMESPACE
Constructor Detail |
---|
public QueueUpdate(int position, int remainingTime)
Method Detail |
---|
public int getPosition()
public int getRemaingTime()
public String toXML()
PacketExtension
toXML
in interface PacketExtension
public String getElementName()
PacketExtension
getElementName
in interface PacketExtension
public String getNamespace()
PacketExtension
getNamespace
in interface PacketExtension
|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |