public class NewsList extends Object implements Serializable
Constructor and Description |
---|
NewsList(List<NewsEvent> news,
NewsKey lastKey) |
Modifier and Type | Method and Description |
---|---|
NewsKey |
getAfterKey()
Returns news key which can be use for pagination search.
|
NewsKey |
getBeforeKey()
Returns news key which can be use for pagination search.
|
NewsKey |
getLastKey()
Returns last news key for which the news list is valid.
|
List<NewsEvent> |
getNews()
Returns list of news.
|
NewsSource |
getSource()
Returns is all news list was taken from cache.
|
Boolean |
isPolling()
Returns is news list filled by polling.
|
void |
setIsPolling(boolean isPolling)
Set flag is news list filled by polling.
|
void |
setSource(NewsSource source)
Set flag is all news list was taken from cache.
|
public List<NewsEvent> getNews()
public NewsKey getLastKey()
public NewsKey getAfterKey()
Direction.AFTER
public NewsKey getBeforeKey()
Direction.BEFORE
public void setSource(NewsSource source)
public void setIsPolling(boolean isPolling)
public NewsSource getSource()
public Boolean isPolling()
Copyright © 2024 Devexperts. All rights reserved.