public class QueueUser extends java.lang.Object
Constructor and Description |
---|
QueueUser(java.lang.String uid,
int position,
int time,
java.util.Date joinedAt)
Queue user.
|
Modifier and Type | Method and Description |
---|---|
int |
getEstimatedRemainingTime()
Get the estimated remaining time.
|
java.util.Date |
getQueueJoinTimestamp()
Get queue join timestamp.
|
int |
getQueuePosition()
Get queue position.
|
java.lang.String |
getUserID()
Get user id.
|
public QueueUser(java.lang.String uid, int position, int time, java.util.Date joinedAt)
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 queuepublic java.lang.String getUserID()
public int getQueuePosition()
public int getEstimatedRemainingTime()
public java.util.Date getQueueJoinTimestamp()