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.
|
NewsEvent |
getNewsEvent(NewsKey newsKey)
Returns
NewsEvent object for the specified news key. |
NewsEvent getNewsEvent(NewsKey newsKey) throws NewsNotFoundException
NewsEvent
object for the specified news key.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 © 2024 Devexperts. All rights reserved.