T - The type of the resource.public abstract class VoiceLister<T extends BaseResource> extends BaseRequest<T> implements java.lang.Iterable<T>
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Integer |
limit |
protected java.lang.Integer |
offset |
plivoClient| Constructor and Description |
|---|
VoiceLister() |
| Modifier and Type | Method and Description |
|---|---|
VoiceLister<T> |
client(PlivoClient plivoClient) |
java.lang.Long |
get() |
java.util.Iterator<T> |
iterator() |
java.lang.Integer |
limit() |
VoiceLister<T> |
limit(java.lang.Integer limit) |
ListResponse<T> |
list()
Actually list instances of the resource.
|
protected abstract retrofit2.Call<ListResponse<T>> |
obtainCall() |
protected abstract retrofit2.Call<ListResponse<T>> |
obtainFallback1Call() |
protected abstract retrofit2.Call<ListResponse<T>> |
obtainFallback2Call() |
java.lang.Integer |
offset() |
VoiceLister<T> |
offset(java.lang.Integer offset) |
protected java.util.Map<java.lang.String,java.lang.Object> |
toMap() |
client, handleResponse, validatepublic VoiceLister()
public VoiceLister<T> client(PlivoClient plivoClient)
client in class BaseRequest<T extends BaseResource>public java.lang.Integer limit()
public java.lang.Integer offset()
public VoiceLister<T> limit(java.lang.Integer limit)
limit - Used to display the number of results per page. The maximum number of results that
can be fetched is 20.public VoiceLister<T> offset(java.lang.Integer offset)
offset - Denotes the number of value items by which the results should be offset.protected abstract retrofit2.Call<ListResponse<T>> obtainCall() throws PlivoValidationException
PlivoValidationExceptionprotected abstract retrofit2.Call<ListResponse<T>> obtainFallback1Call() throws PlivoValidationException
PlivoValidationExceptionprotected abstract retrofit2.Call<ListResponse<T>> obtainFallback2Call() throws PlivoValidationException
PlivoValidationExceptionpublic ListResponse<T> list() throws java.io.IOException, PlivoRestException, PlivoValidationException
java.io.IOExceptionPlivoRestExceptionPlivoValidationExceptionpublic java.lang.Long get() throws java.io.IOException, PlivoRestException, PlivoValidationException
java.io.IOExceptionPlivoRestExceptionPlivoValidationExceptionprotected java.util.Map<java.lang.String,java.lang.Object> toMap()
public java.util.Iterator<T> iterator() throws IterableError
iterator in interface java.lang.Iterable<T extends BaseResource>IterableError