Class QueueUser
- java.lang.Object
-
- org.jivesoftware.smackx.workgroup.QueueUser
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getEstimatedRemainingTime()
Get the estimated remaining time.Date
getQueueJoinTimestamp()
Get queue join timestamp.int
getQueuePosition()
Get queue position.String
getUserID()
Get user id.
-
-
-
Constructor Detail
-
QueueUser
public QueueUser(String uid, int position, int time, Date joinedAt)
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 Detail
-
getQueuePosition
public int 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
public int 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
public Date 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
-
-