|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.twilio.sdk.resource.Resource
com.twilio.sdk.resource.InstanceResource
com.twilio.sdk.resource.instance.Member
public class Member
The Member represents a single Queue member.
| Field Summary | |
|---|---|
static String |
QUEUE_FRONT
The front of the queue is identified with a special id, "Front". |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
String |
getPosition()
Retrieves the position of the Member in the queue. |
String |
getQueueSid()
Retrieves the queue sid. |
String |
getWaitTime()
Retrieves the wait time in the queue for this Member. |
| Methods inherited from class com.twilio.sdk.resource.InstanceResource |
|---|
getObject, getProperty, update, update |
| Methods inherited from class com.twilio.sdk.resource.Resource |
|---|
setRequestAccountSid |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String QUEUE_FRONT
| Constructor Detail |
|---|
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 represents
public 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 properties| Method Detail |
|---|
public String getQueueSid()
public String getCallSid()
public Date getDateEnqueued()
Date the call was enqueued.
Date the call was enqueued.public String getWaitTime()
Member.
public String 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 use
Member object
TwilioRestException - if communication fails
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||