public class Member extends InstanceResource<TwilioRestClient>
| Modifier and Type | Field and Description |
|---|---|
static String |
QUEUE_FRONT
The front of the queue is identified with a special id, "Front".
|
| Constructor and Description |
|---|
Member(TwilioRestClient client,
Map<String,Object> properties,
String queueSid)
Constructs a
Member by passing in the properties to read from. |
Member(TwilioRestClient client,
String queueSid)
Creates a
Member representing the front of the queue. |
Member(TwilioRestClient client,
String queueSid,
String callSid)
Creates a
Member. |
| Modifier and Type | Method and Description |
|---|---|
Member |
dequeue(String url,
String method)
Dequeue this
Member and transfer control to the passed in url and method. |
String |
getCallSid()
Retrieves the call sid.
|
Date |
getDateEnqueued()
Retrieves the
Date the call was enqueued. |
Integer |
getPosition()
Retrieves the position of the
Member in the queue. |
String |
getQueueSid()
Retrieves the queue sid.
|
Integer |
getWaitTime()
Retrieves the wait time in the queue for this
Member. |
getCastedObject, getObject, getProperty, toJSON, update, updatesetRequestAccountSidpublic static final String QUEUE_FRONT
public Member(TwilioRestClient client, String queueSid, String callSid)
Member.client - the TwilioRestClient to use.queueSid - the queue sid this Member represents.callSid - the call sid this Member representspublic Member(TwilioRestClient client, String queueSid)
Member representing the front of the queue.client - the {queueSid - public Member(TwilioRestClient client, Map<String,Object> properties, String queueSid)
Member by passing in the properties to read from.client - the TwilioRestClient to useproperties - the map of propertiespublic String getQueueSid()
public String getCallSid()
public Date getDateEnqueued()
Date the call was enqueued.Date the call was enqueued.public Integer getWaitTime()
Member.public Integer getPosition()
Member in the queue.public Member dequeue(String url, String method) throws TwilioRestException
Member and transfer control to the passed in url and method. Returns an updated
Member object containing the actual wait time at the time of dequeue.url - the url to redirect tomethod - the method to useMember objectTwilioRestException - if communication failsCopyright © 2011 Twilio, Inc. All Rights Reserved.