com.twilio.sdk.resource
Class NextGenListResource<T extends NextGenInstanceResource,C extends TwilioClient>

java.lang.Object
  extended by com.twilio.sdk.resource.Resource<C>
      extended by com.twilio.sdk.resource.NextGenListResource<T,C>
All Implemented Interfaces:
Iterable<T>
Direct Known Subclasses:
ActivityList, EventList, ReservationList, TaskList, TaskQueueList, TaskQueueListStatistics, WorkerList, WorkflowList, WorkspaceList

public abstract class NextGenListResource<T extends NextGenInstanceResource,C extends TwilioClient>
extends Resource<C>
implements Iterable<T>


Constructor Summary
NextGenListResource(C client)
           
NextGenListResource(C client, Map<String,String> filters)
           
 
Method Summary
 String getNextPageUrl()
           
 int getPage()
           
 List<T> getPageData()
           
 int getPageSize()
           
 String getPreviousPageUrl()
           
 String getUrl()
           
 Iterator<T> iterator()
           
 
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
 

Constructor Detail

NextGenListResource

public NextGenListResource(C client)

NextGenListResource

public NextGenListResource(C client,
                           Map<String,String> filters)
Method Detail

iterator

public Iterator<T> iterator()
Specified by:
iterator in interface Iterable<T extends NextGenInstanceResource>

getPageData

public List<T> getPageData()

getNextPageUrl

public String getNextPageUrl()

getPage

public int getPage()

getPageSize

public int getPageSize()

getPreviousPageUrl

public String getPreviousPageUrl()

getUrl

public String getUrl()


Copyright © 2011 Twilio, Inc. All Rights Reserved.