Implement background task for fetching RSS feeds

* Implemented in briar-core as a `ScheduledExecutorService`
  that gets started when the app starts
* The briar-api has a `FeedManager` interface
  that the UI can use to register and unregister feeds
* In this first iteration, feeds are fetched via HTTP(S), not Tor

Closes #484
This commit is contained in:
Torsten Grote
2016-07-22 18:16:05 -03:00
parent 4af5dbb45b
commit e527e30712
11 changed files with 500 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
package org.briarproject.api.feed;
public interface FeedConstants {
/* delay after start before fetching feed, in minutes */
int FETCH_DELAY_INITIAL = 1;
/* the interval the feed should be fetched, in minutes */
int FETCH_INTERVAL = 30;
// group metadata keys
String KEY_FEEDS = "feeds";
String KEY_FEED_URL = "feedURL";
String KEY_BLOG_GROUP_ID = "blogGroupId";
String KEY_FEED_TITLE = "feedTitle";
String KEY_FEED_DESC = "feedDesc";
String KEY_FEED_AUTHOR = "feedAuthor";
String KEY_FEED_ADDED = "feedAdded";
String KEY_FEED_UPDATED = "feedUpdated";
}