Skip to content
Browse files

added Queue.getMembers()

  • Loading branch information...
1 parent 896e49c commit 1e0d0c743a4b182939844dd71337a54eb8a8dcbc @eanderle eanderle committed with ChristerF Aug 8, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/main/java/com/twilio/sdk/resource/instance/Queue.java
View
7 src/main/java/com/twilio/sdk/resource/instance/Queue.java
@@ -6,6 +6,7 @@
import com.twilio.sdk.TwilioRestClient;
import com.twilio.sdk.TwilioRestException;
import com.twilio.sdk.resource.InstanceResource;
+import com.twilio.sdk.resource.list.MemberList;
public class Queue extends InstanceResource {
private final static String SID = "Sid";
@@ -43,6 +44,12 @@ public String getAverageWaitTime() {
return this.getProperty(Queue.AVERAGE_WAIT_TIME);
}
+ public MemberList getMembers() {
+ MemberList list = new MemberList(this.getClient(), this.getSid());
+ list.setRequestAccountSid(this.getRequestAccountSid());
+ return list;
+ }
+
@Override
protected String getResourceLocation() {
return "/" + TwilioRestClient.DEFAULT_VERSION + "/Accounts/"

0 comments on commit 1e0d0c7

Please sign in to comment.
Something went wrong with that request. Please try again.