public interface NewsService
Modifier and Type | Method and Description |
---|---|
NewsList |
findNewsForFilter(NewsFilter filter,
NewsKey lastKey)
Long-polling method to find news updates since last known news for the specified filter.
|
NewsBody |
getNewsBody(NewsKey newsKey)
Returns
NewsBody object for the specified news key. |
String |
getNewsContents(NewsKey newsKey)
Returns news contents for the specified news key.
|
NewsBody getNewsBody(NewsKey newsKey) throws NewsNotFoundException
NewsBody
object for the specified news key.newsKey
- news key to lookup news body for.NewsNotFoundException
- if news is not foundString getNewsContents(NewsKey newsKey) throws NewsNotFoundException
newsKey
- news key to lookup news body for.NewsNotFoundException
- if news is not foundNewsList findNewsForFilter(NewsFilter filter, NewsKey lastKey)
filter
- news filter to filter news on the server-side.lastKey
- last received news key, or NewsKey.FIRST_KEY
for first time.Copyright © 2021 Devexperts. All Rights Reserved.