Package | Description |
---|---|
com.devexperts.mdd.news.event |
Defines News API entities, such as NewsSummary and NewsBody .
|
com.devexperts.mdd.news.model |
Defines News API services.
|
Modifier and Type | Field and Description |
---|---|
static NewsKey |
NewsKey.FIRST_KEY |
Modifier and Type | Method and Description |
---|---|
NewsKey |
NewsSummary.getKey()
Returns news key for identifying news.
|
NewsKey |
NewsBody.getKey()
Convenient method for
getSummary().getKey() . |
Modifier and Type | Method and Description |
---|---|
void |
NewsSummary.assignKey(NewsKey key) |
Constructor and Description |
---|
NewsSummary(NewsKey key,
String sourceId,
long time,
String title,
String source,
Map<String,Collection<String>> tags) |
Modifier and Type | Method and Description |
---|---|
NewsKey |
NewsList.getLastKey()
Returns last news key for which the news list is valid.
|
Modifier and Type | Method and Description |
---|---|
NewsList |
NewsService.findNewsForFilter(NewsFilter filter,
NewsKey lastKey)
Long-polling method to find news updates since last known news for the specified filter.
|
NewsBody |
NewsService.getNewsBody(NewsKey newsKey)
Returns
NewsBody object for the specified news key. |
String |
NewsService.getNewsContents(NewsKey newsKey)
Returns news contents for the specified news key.
|
Constructor and Description |
---|
NewsList(List<NewsSummary> news,
NewsKey lastKey) |
Copyright © 2021 Devexperts. All Rights Reserved.