public abstract class PaginatedFlattrCallable<R> extends AbstractFlattrCallable<R>
FlattrCallable that allows pagination.| Constructor and Description |
|---|
PaginatedFlattrCallable() |
| Modifier and Type | Method and Description |
|---|---|
R |
call(FlattrService service)
Calls the appropriate method at the service and returns the result.
|
abstract R |
call(FlattrService service,
Integer count,
Integer page)
Calls the appropriate method at the service and returns the result.
|
Integer |
getCount() |
Integer |
getPage() |
void |
setCount(Integer count)
The number of entries per page.
|
void |
setPage(Integer page)
Page number (counted from 1), or
null to turn off paging. |
call, createFlattrService, getRateLimit, getResult, isFullMode, setAccessToken, setAccessToken, setFullModepublic PaginatedFlattrCallable()
public void setCount(Integer count)
null defaults to 30 entries.public abstract R call(FlattrService service, Integer count, Integer page) throws Exception
service - Preconfigured FlattrService to be invokedcount - Number of elements per page, or nullpage - Page number, or nullExceptionpublic R call(FlattrService service) throws Exception
AbstractFlattrCallablecall in class AbstractFlattrCallable<R>service - Preconfigured FlattrService to be invokedExceptionCopyright © 2010–2017. All rights reserved.