public class QueueUpdate extends Object implements PacketExtension
Modifier and Type | Class and Description |
---|---|
static class |
QueueUpdate.Provider |
Modifier and Type | Field and Description |
---|---|
static String |
ELEMENT_NAME
Element name of the packet extension.
|
static String |
NAMESPACE
Namespace of the packet extension.
|
Constructor and Description |
---|
QueueUpdate(int position,
int remainingTime) |
Modifier and Type | Method and Description |
---|---|
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 representation of the PacketExtension.
|
public static final String ELEMENT_NAME
public static final String NAMESPACE
public QueueUpdate(int position, int remainingTime)
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