T
- the type of an item returned from the API.public class ListResponse<T>
extends java.lang.Object
Represents a page of items returned from the API.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAfter()
Returns a cursor that can be used to get the page after this one.
|
java.lang.String |
getBefore()
Returns a cursor that can be used to get the page before this one.
|
java.util.List<T> |
getItems()
Returns the items on this page.
|
int |
getLimit()
Returns the upper bound placed on the number of items returned.
|
public java.util.List<T> getItems()
Returns the items on this page.
public java.lang.String getAfter()
Returns a cursor that can be used to get the page after this one. If null, then this is the last page.
public java.lang.String getBefore()
Returns a cursor that can be used to get the page before this one. If null, then this is the first page.
public int getLimit()
Returns the upper bound placed on the number of items returned.