Class QueueUser
java.lang.Object
org.jivesoftware.smackx.workgroup.QueueUser
An immutable class which wraps up customer-in-queue data return from the server; depending on
the type of information dispatched from the server, not all information will be available in
any given instance.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Get the estimated remaining time.Get queue join timestamp.int
Get queue position.Get user id.
-
Constructor Details
-
QueueUser
Queue user.- Parameters:
uid
- the user jid of the customer in the queueposition
- the position customer sits in the queuetime
- the estimate of how much longer the customer will be in the queue in secondsjoinedAt
- the timestamp of when the customer entered the queue
-
-
Method Details
-
getUserID
Get user id.- Returns:
- the user jid of the customer in the queue
-
getQueuePosition
Get queue position.- Returns:
- the position in the queue at which the customer sits, or -1 if the update which this instance embodies is only a time update instead
-
getEstimatedRemainingTime
Get the estimated remaining time.- Returns:
- the estimated time remaining of the customer in the queue in seconds, or -1 if if the update which this instance embodies is only a position update instead
-
getQueueJoinTimestamp
Get queue join timestamp.- Returns:
- the timestamp of when this customer entered the queue, or null if the server did not provide this information
-