com.twilio.sdk.resource
Class ListResource<T extends Resource>

java.lang.Object
  extended by com.twilio.sdk.resource.Resource
      extended by com.twilio.sdk.resource.ListResource<T>
All Implemented Interfaces:
Iterable<T>
Direct Known Subclasses:
AccountList, ApplicationList, AuthorizedConnectAppList, AvailablePhoneNumberList, CallList, ConferenceList, ConnectAppList, CredentialList, CredentialListList, CredentialListMappingList, DomainList, IncomingPhoneNumberList, IpAccessControlListList, IpAccessControlListMappingList, IpAddressList, MediaList, MemberList, MessageList, NotificationList, OutgoingCallerIdList, ParticipantList, QueueList, RecordingList, ShortCodeList, SmsList, TranscriptionList, UsageRecordList, UsageTriggerList

public abstract class ListResource<T extends Resource>
extends Resource
implements Iterable<T>


Constructor Summary
ListResource(TwilioRestClient client)
          Instantiates a new list resource.
ListResource(TwilioRestClient client, Map<String,String> filters)
          Instantiates a new list resource.
 
Method Summary
 int getEnd()
          Gets the end.
 String getNextUri()
          Gets the next uri.
 int getNumPages()
          Gets the num pages.
 int getPage()
          Gets the page.
 List<T> getPageData()
          Gets the page data.
 int getStart()
          Gets the start.
 int getTotal()
          Gets the total.
 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

ListResource

public ListResource(TwilioRestClient client)
Instantiates a new list resource.

Parameters:
client - the client

ListResource

public ListResource(TwilioRestClient client,
                    Map<String,String> filters)
Instantiates a new list resource.

Parameters:
client - the client
filters - the filters
Method Detail

iterator

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

getNextUri

public String getNextUri()
Gets the next uri.

Returns:
the next uri

getStart

public int getStart()
Gets the start.

Returns:
the start

getEnd

public int getEnd()
Gets the end.

Returns:
the end

getNumPages

public int getNumPages()
Gets the num pages.

Returns:
the num pages

getTotal

public int getTotal()
Gets the total.

Returns:
the total

getPage

public int getPage()
Gets the page.

Returns:
the page

getPageData

public List<T> getPageData()
Gets the page data.

Returns:
the page data


Copyright © 2011 Twilio, Inc. All Rights Reserved.