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, setFullMode
public 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 null
page
- Page number, or null
Exception
public R call(FlattrService service) throws Exception
AbstractFlattrCallable
call
in class AbstractFlattrCallable<R>
service
- Preconfigured FlattrService
to be invokedException
Copyright © 2010–2017. All rights reserved.